User and Programming Manual – Rev P California Instruments15. Programming Examples15.1. IntroductionThis chapter contains examples on how to program the AC source. Simple examples showyou how to program:· output functions such as voltage and frequency· measurement functionsThe examples in this chapter use generic SCPI commands. See Section 12 for informationabout encoding the commands as language strings. Where appropriate, optional commandsare shown for clarity in the examples.15.2. Programming the OutputPower-on InitializationWhen the AC source is first turned on, it wakes up with the output state defined by the PONregister number. If the register number or the register has no valid data, the AC sourceinitializes to the following state.VOLT 0FREQ 60OUTP 0VOLT:RANG 136The following commands are given implicitly at power-on:*RST*CLS*SRE 128*ESE 0*RST is a convenient way to program all parameters to a known state. Refer to Table 13under the *RST command in paragraph 14.4.6 to see how each programmable parameter isset by *RST.Enabling the OutputTo enable the output, use the command:OUTPut 1Voltage and FrequencyThe AC rms output voltage is controlled with the VOLTage command. For example, to setthe AC output voltage to 125 volts rms, use:VOLTage 125The maximum voltage that the AC source can output is limited by the rms value of thewaveform. This value is defined by the LIMIT subsystem.Voltage RangesRP Series October 2005 69