
Chapter 6 Application Programs
Using the APPLy Command
127
6
. . .
continued
void out_setting(void)
{
/* Set 5.0 volts/1.0 amp to +6V output, 15 volts/1.0 amp to +25V output
and -10 volts/0.8 amps to -25V output. */
static char *cmd_string[]=
{
"APPL P6V, 5.0, 1.0;" /* Set 5.0 volts / 1.0 amp to +6V output */
"APPL P25V, 15.0, 1.0;" /* Set 15.0 volts / 1.0 amp to +25V output */
"APPL N25V, -10.0, 0.8" /* Set -10.0 volts / 0.8 amp to -25V output */
};
/* Call the function to execute the command strings shown above */
command_exe(cmd_string, sizeof(cmd_string)/sizeof(char*));
/* Call the function to check for errors */
check_error("out_setting");
}
/**************************************************************************/
void output_on(void)
{
IOOUTPUTS(ADDR, "OUTP ON", 7) /*Enable the outputs
}
/**************************************************************************/
void command_exe(char *commands[], int length)
{
/* Execute one command string at a time using a loop */
int loop;
for (loop = 0; loop < length; loop++)
{
IOOUTPUTS(ADDR, commands[loop], strlen(commands[loop]));
}
}
/**************************************************************************/
Содержание E3631-90002
Страница 9: ...8...
Страница 14: ...1 1 General Information...
Страница 25: ...24...
Страница 26: ...2 2 Initial Operation...
Страница 34: ...3 3 Front Panel Operation...
Страница 64: ...4 4 Remote Interface Reference...
Страница 113: ...112...
Страница 114: ...5 5 Error Messages...
Страница 124: ...6 6 Application Programs...
Страница 137: ...136...
Страница 138: ...7 7 Tutorial...
Страница 153: ...152...
Страница 154: ...8 8 Specifications...
Страница 160: ...Chapter 8 Specifications Supplemental Characteristics 159 8 Figure 8 1 Dimensions of Agilent E3631A Power Supply...
Страница 161: ...160...