Triangulation Laser Sensors, RF605 Series
RF605 [Revision 2.0] 10th January 2011 valid for sensors with serial numbers 11000 and higher
30
EXAMPLE 2 (how to get a stream of result)
EXAMPLE 3 (how to get a result with latching)
You can find examples of programs for LabView here:
www.riftek.com/resource/files/rf60x_labview_example.zip
You can find examples of programs for Visal Basic 6 here
www.riftek.com/resource/files/rf60x-vb.zip
17. Warranty policy
Warranty assurance for the Laser triangulation sensors RF605 - 24 months from
the date of putting in operation; warranty shelf-life - 12 months
HANDLE
hRF60x
=
INVALID_HANDLE_VALUE;
USHORT
usMeasured;
RF60xHELLOANSWER
hlans;
memset(&hlans, 0x00,
sizeof
(RF60xHELLOANSWER));
RF60x_OpenPort("COM2:", CBR_9600, &hRF60x);
if
(RF60x_HelloCmd( hRF60x, 1, &hlans ))
{
printf("Dev modify\t: %d\r\nDev type\t: %d\r\nDev max dist\t:
%d\r\nDev range\t: %d\r\nDev serial\t: %d\r\n",
hlans.bDeviceModificaton,
hlans.bDeviceType,
hlans.wDeviceMaxDistance,
hlans.wDeviceRange,
hlans.wDeviceSerial
);
if
(!RF60x_WriteParameter( hRF60x, 1,
RF60x_PARAMETER_SAMPLING_PERIOD, 500 ))
return
(-1);
if
(!RF60x_StartStream(hRF60x, 1))
return
(-1);
RF60x_GetStreamMeasure(hRF60x, &usMeasured);
printf("Measure \t: %d\r\n", usMeasured);
RF60x_GetStreamMeasure(hRF60x, &usMeasured);
printf("Measure \t: %d\r\n", usMeasured);
RF60x_StopStream(hRF60x, 1);
}
else
printf("rs232 error!\r\n");
RF60x_ClosePort( hRF60x );
for
(
int
i=0;i<100;i++)
{
// Result latching
RF60x_LockResult(hRF60x, 1);
// Result receiving
RF60x_Measure( hRF60x, 1, &usMeasured);
printf("Measure-l
\t: %d\r\n", usMeasured);
}
Summary of Contents for RF603 Series
Page 1: ......