EasyManua.ls Logo

SMH Technologies FlashRunner Cube Series - Opencommport()

SMH Technologies FlashRunner Cube Series
68 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
FR CUBE API
5
52
FR_OpenCommPort()
Prototype
FR_COMM_HANDLE WINAPI FR_OpenCommPortA (const char *com_port, const char
*com_settings);
FR_COMM_HANDLE WINAPI FR_OpenCommPortW (const wchar_t *com_port, const
wchar_t *com_settings);
Description
Opens a RS-232, Ethernet or USB communication channel with the
instrument.
Return Value
>0 alid communication handle to use in subsequent
functions.
NULL The function call was unsuccessful. Call the
FR_GetLastErrorMessage() function to get error information.
Parameters
com_port Communication port. Can be COM, LAN or USB.
com_settings RS-232 settings for COM port (e.g.: COM1,115200);
Ethernet settings for LANport (e.g.: 192.168.1.100:2101);
Empty string for USB port.
http://smh-tech.com.cn sales@smh-tech.com.cn +86-15250087885