HP (Hewlett-Packard) E1418A TV Converter Box User Manual


 
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