SmcWInit


Function

Performs initialization of the device.

 

Format

Ret =SmcWInit( DeviceName, Id )

 

Parameters

DeviceName [ C, C++: char * ] [ Python: ctypes.c_char_p ]

Specify the device name set with the setting tool.

 

Id [ C, C++: short * ] [ Python: ctypes.POINTER(ctypes.c_short) ]

Specify the address of the variable for receiving the ID.
The following functions can access the value stored in this variable.

 

Return Value

Ret [ C, C++: long ] [ Python: ctypes.c_long ]

0

Terminated normally

Non-zero

Terminated abnormally

See also: Error code details

 

Remarks

It is necessary to initialize it first to access the device.

 

Example

The device is initialized.

 

C, C++

long Ret;

char *DeviceName ="SMC000" ;

short Id ;

Ret = SmcWInit( DeviceName , &Id );

 

Python

Ret = ctypes.c_long()

DeviceName = "SMC000"

Id = ctypes.c_short()

Ret.value = csmc.SmcWInit( DeviceName , ctypes.byref(Id) )

 

See Also

SmcWExit