Page: 67/81 User Manual PSU-CTRL-2D, Rev.1-00: Software Interface
Device Configuration
Function COM_HVPSU2D_GetDeviceEnable
int COM_HVPSU2D_GetDeviceEnable
(WORD PortNumber, BOOL & Enable);
Command: E
©
Response: E
B
©
Saves the enable state of the device in the variable
Enable
and re-
turns an error code according to Tab. 10.
The value in the variable
Enable
determines the behavior of the de-
vice. If it is true, i.e. it is nonzero and no error conditions exist, the
PSU modules are enabled (see bit
ST_PSU_ENB_CTRL
the constant
COM_HVPSU2D_ST_PSU_ENB_CTRL
in the declaration
file
COM-HVPSU2D.h
). If the variable
Enable
is false, the PSU mod-
ules are disabled.
Note that the value of the enable state is stored in the NVM and is re-
stored during startup. This means that if the device is enabled, it will
be enabled at power-on and will produce output voltages.
The response to the direct command (
E
©
) contains one Boolean
character (
B
) for the variable
Enable
.
Function COM_HVPSU2D_SetDeviceEnable
int COM_HVPSU2D_SetDeviceEnable
(WORD PortNumber, BOOL Enable);
Command: E
B
©
Response: E
B
©
Sets the enable state of the device to the value given by the variable
Enable
and returns an error code according to Tab. 10.
For more details, see function
.
The direct command (
E
B
©
) contains one Boolean character (
B
) for the
variable
Enable
. If the command is executed successfully, the device
responds by repeating the command characters.
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]