Triangulation Laser Sensors, RF605 Series
RF605 [Revision 2.0] 10th January 2011 valid for sensors with serial numbers 11000 and higher
27
Returned value:
If the device does not respond to result request, the function returns FALSE, otherwise, if
the restore confirm is obtained from the sensor, the function returns TRUE.
15.9. Starting measurement stream (RF60X_StartStream)
The function
RF60x_StartStream
switches RF605 sensor to the mode where conti-
nuous transmission of measurement results takes place
:
Parameters:
hCOM
–
descriptor of the device obtained from function
RF60x_OpenPort or CreateFile;
bAddress
-
address of the device.
Returned value:
If the device fails to be switched to continuous measurement transmission mode, the
function returns FALSE, otherwise the function returns TRUE.
15.10. Stopping measurement stream (RF60x_StopStream)
The function
RF60x_StopStream
switches the sensor from continuous measurement
transmis
sion mode to the ―request-response‖ mode:
Parameters:
hCOM
–
descriptor of the device obtained from function
RF60x_OpenPort or CreateFile;
bAddress
-
address of the devic
e.
Returned value:
If the device fails to be stopped in the continuous data transmission mode, the function
returns FALSE, otherwise the function returns TRUE
15.11. Getting measurement results from the stream
(RF60X_GetStreamMeasure)
The function
RF60x_GetStreamMeasure
reads data from the COM-port input buffer
which are received from RF605 sensor after successful execution of the
RF60xX_StartStream function. The data arrive in the buffer at a rate specified in the
RF605 sensor parameters. Since depth of the input buffer is limited to 1024 bytes, it is
preferable to read data with periodicity equal to that speci
fied
in the sensor parameters.
The parameter
lpusValue
is identical to the parameter
lpusValue
in the
RF60x_Measure function.
BOOL RF60x_StartStream(
HANDLE
hCOM,
BYTE
bAddress
);
BOOL RF60x_StartStream(
HANDLE
hCOM,
BYTE
bAddress
);
BOOL RF60x_GetStreamMeasure(
HANDLE
hCOM,
USHORT *
lpusValue
);
Содержание RF603 Series
Страница 1: ......