CP9090-S100: Properties

DeviceOpen

Sets / returns the status of CP9030 communication port (open or close)

HRESULT DeviceOpen(
        [out, retval] VARIANT_BOOL* pVal
);

HRESULT DeviceOpen(
        [in] VARIANT_BOOL pVal
);

 

Parameters

pVal
TRUE if open, FALSE if not

 

Comment

You have to set the property  "DeviceAddr" before setting "DeviceOpen" to TRUE.
If this function failed, check the property "DeviceAddr".

 

 

Sample VB-Syntax

Dim bDeviceOpen as Boolean

CP9030W9x1.DeviceOpen = True
bDeviceOpen = CP9030W9x1.DeviceOpen