Triangulation Laser Sensors, RF605 Series
RF605 [Revision 2.0] 10th January 2011 valid for sensors with serial numbers 11000 and higher
23
14.6.3. Saving and writing a group of parameters
Parameters of the sensor can be saved to a file. This is done by selecting
File>Write parameters set
and saving the file in the window offered.
To call a group of parameters from a file, select
File>Sensor parameters
sets
…
, and select the file required.
Note:
these functions are convenient to use if it is
necessary to write identical parameters to several sensors.
14.6.4. Recovery of default parameters
To restore the sensor parameters set by default, use
File>Restore
defaults
.
15. RF60X-SDK. Function description
Laser sensor is supplied together with SDK (
www.riftek.com/resource/files/rf60x-
) consisting of:
- dynamic library RF60x.dll,
- file for static linking of DLL to project RF60x.lib,
- definition file RF60x.h.
The SDK allows user to develop his own software products without going into de-
tails of the sensor communications protocol.
15.1. Connection to COM-port (RF60x_OpenPort)
The function
RF60x_OpenPort
opens COM-port with specified symbolic name,
fills in the pointer to the device descriptor and returns the operation result.
Parameters:
lpPort_Name
–
name of COM-
port (e.g., ―COM1:‖), full syntax for
COM-port name specification see in MSDN, function CreateFile
;
dwSpeed
-
operation speed through COM-port. The pa-
rameter is identical to field BaudRate in DCB structure described in MSDN
;
lpHandle
-
pointer to the device descriptor
;
Returned value:
If COM-port fails to be opened and adjusted, the function will return FALSE, otherwise if
COM-port was opened and adjusted successfully the function will return TRUE. More
detailed information about returned errors can be obtained using API function GetLastEr-
ror described in MSDN.
15.2. Disconnection from COM-port (RF60x_ClosePort)
The function
RF60x_ClosePort
closes COM-port and returns the operation
result
:
BOOL RF60x_OpenPort(
LPCSTR
lpPort_Name,
DWORD
dwSpeed,
HANDLE *
lpHandle
);
BOOL RF60x_ClosePort(
HANDLE
hHandle
);
Содержание RF603 Series
Страница 1: ......