Laser triangulation sensors. RF603 Series - RIFTEK - #39

/ 44


catalogue search
P. 01
P. 02
P. 03
P. 04
P. 05
P. 06
P. 07
P. 08
P. 09
P. 10
P. 11
P. 12
P. 13
P. 14
P. 15
P. 16
P. 17
P. 18
P. 19
P. 20
P. 21
P. 22
P. 23
P. 24
P. 25
P. 26
P. 27
P. 28
P. 29
P. 30
P. 31
P. 32
P. 33
P. 34
P. 35
P. 36
P. 37
P. 38
P. 39
P. 40
P. 41
P. 42
P. 43
P. 44
Pages:


See other catalogues for RIFTEK

Text version of the page
Triangulation Laser Sensors, RF603 Series EXAMPLE 2 (how to get a stream of result) HANDLE INVALID_HANDLE_VALUE; USHORT RF60xHELLOANSWER hRF60x = usMeasured; 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 ); 39 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 ); EXAMPLE 3 (how to get a result with latching) 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); } 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 RF603 [Revision 2.0] 10th January 2011 valid for sensors with serial numbers 11000 and higher

pageCatalog pdf di En 2012-05-22-31