Page: 72/81 User Manual PSU-CTRL-2D, Rev.1-00: Software Interface
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]
The value
Active
determines if the configuration is active (value set)
or deleted (value reset). When this flag is flipped by calling the func-
tion
, the particular configuration
can be deleted or undeleted.
Note that only a valid active configuration can be loaded successfully
by the function
.
The direct command (
X
NN
©
) contains two hexadecimal digits (
NN
) for
the variable
ConfigNumber
. If the command is executed success-
fully, the device response (
X
NNF
©
) has the same beginning as the
command and additionally returns one hexadecimal digit (
F
) for the
configuration flags. The configuration flags are a bit array, the least
significant bit (bit 0) corresponds to the variable
Active
and the next
bit (bit 1) to the variable
Valid
. This means that an empty configura-
tion returns a flag value of 0, an active one 3, and a deleted one a
value of 2.
Function COM_HVPSU2D_SetConfigFlags
int COM_HVPSU2D_SetConfigFlags
(WORD PortNumber, unsigned ConfigNumber,
bool Active, bool Valid);
Command: X
NNF
©
Response: X
NNF
©
Sets the flags of the configuration in the NVM with the number given
by the variable
ConfigNumber
to the values given by the variables
Active
and
Valid
, and returns an error code according to Tab. 10.
For more details, see function
.
The direct command (
X
NNF
©
) contains two hexadecimal digits (
NN
)
for the variable
ConfigNumber
and one hexadecimal digit (
F
)
for the configuration flags (for more details, see function
). If the command is executed
successfully, the device responds by repeating the command
characters.