Agilent Technologies Agilent E5810A User's Guide Page 99

  • Download
  • Add to my manuals
  • Print
  • Page
    / 192
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 98
99
Programming Your Instruments
Example Programs
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));
}
Page view 98
1 2 ... 94 95 96 97 98 99 100 101 102 103 104 ... 191 192

Comments to this Manuals

No comments