Page: 74/81 User Manual PSU-CTRL-2D, Rev.1-00: Software Interface
Miscellaneous Functions
Function COM_HVPSU2D_GetSWVersion
WORD COM_HVPSU2D_GetSWVersion();
Returns the version of the software interface (the dynamic link library
COM-HVPSU2D.dll
).
This function should be used to check whether a software interface
with the correct version is being used. The function should be called
prior to any other function of the software interface. It does not have
any influence on the communication and can be called at any time.
The return value is an unsigned 16-bit integer (WORD). The higher
byte contains the main version number, the lower byte the subversion,
i.e. the version order within the main version. If the version numbers of
a library
COM-HVPSU2D.dll
are different, check the change list
provided by the manufacturer. There is no guarantee that a library
COM-HVPSU2D.dll
with different version numbers can be used with-
out any changes. In most cases, the user software has to be recom-
piled or modified to match the new definition of the software interface.
Function COM_HVPSU2D_GetHWType
int COM_HVPSU2D_GetHWType (WORD PortNumber,
DWORD & HWType);
Command: t
©
Response: t
HHHHHH
©
Saves the device's hardware version in the variable
HWType
and re-
turns an error code according to Tab. 10.
The return value in the variable
HWType
can be used to identify the
hardware. i.e. to ensure that the connected device is the desired type.
Please contact the manufacturer for further details.
The response to the direct command (
t
©
) contains 6 hexadecimal
digits (
HHHHHH
) for the variable
HWType
.
CGC Instruments
Tel.: +49 (371) 355 098–55
Hübschmannstr. 18 | D–09112 Chemnitz
Fax: +49 (371) 355 098–60
internet: www.cgc-instruments.com
e–mail: [email protected]