Technical data
Programming Your Instruments 6
Agilent Connectivity Guide 157
strcpy(SCPIcmd, "FUNCtion:USER PULSE\n"); /* Select the active
arb waveform */
CHECK(viWrite(Instrument, SCPIcmd, (ViUInt32)strlen(SCPIcmd),
&actual));
strcpy(SCPIcmd, "FUNCtion:SHAPe USER\n"); /* Output the selected
arb waveform */
CHECK(viWrite(Instrument, SCPIcmd, (ViUInt32)strlen(SCPIcmd),
&actual));
strcpy(SCPIcmd, "OUTPut:LOAD 50\n"); /* Output termination is 50 Ohms
*/
CHECK(viWrite(Instrument, SCPIcmd, (ViUInt32)strlen(SCPIcmd),
&actual));
strcpy(SCPIcmd, "FREQuency 5000;VOLTage 5\n"); /* Output frequency is
5 kHz @ 5 Vpp */
CHECK(viWrite(Instrument, SCPIcmd, (ViUInt32)strlen(SCPIcmd),
&actual));
strcpy(SCPIcmd, "OUTPut ON\n"); /* Enable output */
CHECK(viWrite(Instrument, SCPIcmd, (ViUInt32)strlen(SCPIcmd),
&actual));
CHECK(viClose(Instrument));
CHECK(viClose(viDefaultRM));
}