Like the APPLyn commands, you can change the output value by sending additional SOURcen commands. Changing the output value with the SOURcen commands does not open the output relay.

/* Set channel 1 voltage mode */

SOURce1:FUNCtion:MODE VOLTage

/* Set channel 1 voltage output */

SOURce1:VOLTage 5.000

/* Turn on the output */

OUTPut1 ON

/* Channel 1 output is enabled */ /* Send a new output voltage */

SOURce1:VOLTage 15.000

Changing the output mode with the SOURcen commands opens the output relay.

/* Set channel 1 voltage mode */

SOURce1:FUNCtion:MODE VOLTage

/* Set channel 1 voltage output */

SOURce1:VOLTage 5.000

/* Turn on the output */

OUTPut1 ON

/* Channel 1 output is enabled and 5 volts applied */ /* Send a new output mode */

SOURce1:FUNCtion:MODE CURRent

/* Channel 1 output is disabled */ /* Set channel 1 output current */

SOURce1:CURRent .01

/* Channel 1 is programmed for 10 mA */ /* Turn on the output */

OUTPut1 ON

/* Channel 1 output is enabled and 10 mA applied */

Chapter 2

Programming Examples 51

Page 51
Image 51
HP E1418A manual SOURce1FUNCtionMODE CURRent