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 “LAN” port (e.g.: ”192.168.1.100:2101”);
Empty string for “USB” port.
http://smh-tech.com.cn sales@smh-tech.com.cn +86-15250087885