User`s guide

4-10 Agilent E6432A Microwave Synthesizer User’s Guide
Opening a Session Using C
An example of opening a VXI session is:
/* open a VXI session to the instrument at logical address 210
*/
#include “visatype.h”
#include “hpe6432types.h”
#include “hpe6432errors.h”
#include “hpe6432.h”
ViSession instrumentHandle;
ViStatus errStatus;
errStatus = HPE6432_init("VXI0::210::INSTR", VI_FALSE,
VI_FALSE, &instrumentHandle);
if( VI_SUCCESS <> errStatus) {
printf("Unable to open instrument\n");
}
Opening a Session Using Visual BASIC 6.0
An example of opening a session to the Agilent Technologies E6432A
using Visual BASIC 6.0 is:
' open a VXI device session to the instrument at logical
address 210
errStatus = HPE6432_init("VXI0::210::INSTR", 0, 1, vi)
If VI_SUCCESS > errStatus Then
errStatus = HPE6432_error_message(vi, errStatus, ErrMsg)
msg$ = "Unable to open " + Addr + Chr$(13)
msg$ = msg$ + "HPE6432_init() returned message: " + ErrMsg
MsgBox msg$
End
End If