![THORLABS PRO800 Series Скачать руководство пользователя страница 62](http://html.mh-extra.com/html/thorlabs/pro800-series/pro800-series_operation-manual_1110711062.webp)
58 Communication with a PC
_________________________________________________________________________________
______________________________________________________________________________________________________
© 2012 Thorlabs
You can retrieve all data measured by "ELCH" with a single command. Depending on
the number of measurement values, this can take a considerable time.
E.g.: 1001 measurement values with 8 readout values results in a 1001 *(1set +
8read) * 17Byte/value + 2 ...3 Byte string terminator = max.
153156 Byte!
So you must ensure that your input buffer is large enough and that the IEEE timeout
is set high enough to not generate a timeout error (e.g. read-out of 1001
measurements with 9. values takes some 40 seconds!)
Example of answer string (meas. values separated by comma, meas. points by
semicolon):
1.00000005E-003,9.79492208E-004;3.25000030E-
003,3.23242205E-003;5.50000044E-003,5.47656277E-
003;7.75000080E-003,7.73339858E-003;1.00000007E-
002,9.98535194E-003;
NOTE
Please keep in mind: IEEE488 bus traffic of all connected hosts is ceased
as long as the data transfer from the PRO8 to the controller is active, or
your program must stop data transfer for other traffic in-between.
You must also make sure, that your input buffer is large enough!
If you use the
:
ELCH:GETALL?
command while the ‘ELCH’ routine is still
running, you will get all measured date up to this point as output. You can then use
the
:
ELCH:GETALL?
command again or proceed with the
:
ELCH:TRIG?
command to read the subsequent data.
The command:
:ELCH:RESET?
gives you the remaining number of measurement values.
:
ELCH:RESET 0
resets the internal "ELCH" counters to zero, so that data recorded previously but not
read yet are overwritten by the next ELCH run.