beautypg.com

HP E1418A User Manual

Page 52

background image

Like the

APPLy

n commands, you can change the output value by sending

additional

SOURce

n commands. Changing the output value with the

SOURce

n 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

SOURce

n 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

Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com