Agilent Technologies E8663B Portable Generator User Manual


 
52 Agilent N518xA, E8663B, E44x8C, and E82x7D Signal Generators Programming Guide
Using IO Interfaces
RS-232 Programming Interface Examples
Queries for RS-232 Using VISA and C
This portion of the example program “Queries for RS-232 Using VISA and C” on page 52, uses VISA
library functions to communicate with the signal generator. The program verifies that the RS-232
connections and interface are functional.
The following program example is available on the signal generator Documentation CD-ROM as
rs232ex2.cpp. For the full text of this program, refer to “Queries for RS-232 Using VISA and C” on
page 135 or to the signal generator’s documentation CD-ROM.
status = viOpenDefaultRM(&defaultRM);// Initializes the system
// Open communication with Serial Port 2
status = viOpen(defaultRM, "ASRL2::INSTR", VI_NULL, VI_NULL, &instr);