
CHAPTER 2
MODULAR SERVO
Reference Manual
Description of the Toolbox Functions
33-008-2M5
2-15
GetNoOfSamples
Purpose:
Get the number of samples available in the buffer.
Synopsis
: Hist = es_call( 'GetNoOfSamples' )
Description:
The function returns the number of samples currently available in the
buffer. The maximum number of samples available in the buffer is equal
to 1024.
See
:
GetHistory
Example
1: Wait until the number of data in the buffer is greater than 120.
es_call( 'StartAcq' );
% clear buffer
% length of buffer is set to zero
while( es_call( 'GetNoOfSamples' ) < 120 )
;
end;
Example
2: The maximum data buffer length is 1024. The following sequence will
never terminate:
while( es_call( 'GetNoOfSamples' ) < 1400 )
;
end;
Summary of Contents for MS150
Page 1: ...MS150 Modular Servo Workshop Reference Manual 33 008 2M5 ...
Page 3: ...Notes ...
Page 7: ...MODULAR SERVO Reference Manual Contents TOC 2 33 008 2M5 Notes ...
Page 10: ...CHAPTER 1 MODULAR SERVO Reference Manual Introduction 33 008 2M5 1 3 ...
Page 24: ...CHAPTER 2 MODULAR SERVO Reference Manual Description of the Toolbox Functions 33 008 2M5 2 13 ...
Page 77: ...CHAPTER 4 MODULAR SERVO Reference Manual Quick Reference Table 4 4 33 008 2M5 Notes ...