Page: 71/81 User Manual PSU-CTRL-2D, Rev.1-00: Software Interface
Function COM_HVPSU2D_SetConfigName
int COM_HVPSU2D_SetConfigName
(WORD PortNumber, unsigned ConfigNumber,
const char
Name [COM_HVPSU2D_CONFIG_NAME_SIZE]);
Command: A
NNS
..
S
©
Response: A
NNS
..
S
©
Sets the name of the configuration in the NVM with the number given
by the variable
ConfigNumber
to the value given by the variable
Name
and returns an error code according to Tab. 10.
For more details, see function
.
The direct command (
A
NNS
..
S
©
) contains two hexadecimal
digits (
NN
) for the variable
ConfigNumber
and
2*COM_HVPSU2D_CONFIG_NAME_SIZE
hexadecimal digits (
S
..
S
)
for the variable
Name
. If the command is executed successfully, the
device responds by repeating the command characters.
Function COM_HVPSU2D_GetConfigFlags
int COM_HVPSU2D_GetConfigFlags
(WORD PortNumber, unsigned ConfigNumber,
bool & Active, bool & Valid);
Command: X
NN
©
Response: X
NNF
©
Saves the flags of the configuration in the NVM with the number given
by the variable
ConfigNumber
in the variables
Active
and
Valid
,
and returns an error code according to Tab. 10.
For the configuration number in the variable
ConfigNumber
, see
.
The variables
Active
and
Valid
define the properties of a particular
configuration in the NVM. The value
Valid
defines whether the con-
figuration is handled as a valid one. If the value is reset, the configura-
tion is considered to be empty.
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]