
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]));
}
}
/**************************************************************************/
Summary of Contents for E3631-90002
Page 9: ...8...
Page 14: ...1 1 General Information...
Page 25: ...24...
Page 26: ...2 2 Initial Operation...
Page 34: ...3 3 Front Panel Operation...
Page 64: ...4 4 Remote Interface Reference...
Page 113: ...112...
Page 114: ...5 5 Error Messages...
Page 124: ...6 6 Application Programs...
Page 137: ...136...
Page 138: ...7 7 Tutorial...
Page 153: ...152...
Page 154: ...8 8 Specifications...
Page 161: ...160...