User`s guide

4-8 Agilent E6432A Microwave Synthesizer User’s Guide
Determining the Logical Address of the
Synthesizer When Set to Be
Auto-Configured (FF)
Using the Soft Front Panel, view the assigned logical address on the
top bar of the dialog box.
Using a programmable interface, the following code can be used to
determine the logical address of the synthesizer:
// Open resource manager
if ((status = viOpenDefaultRM(&dSession)) == VI_SUCCESS) {
// Open find for all vxi instruments
if ((status = viFindRsrc(dSession, "?*VXI[0-9]*::?*INSTR",
&findList, &findCount, (ViChar) &DeviceName))
== VI_SUCCESS) {
// for each instrument
do {
// Open it
if ((status = viOpen(dSession, DeviceName,
VI_NULL, VI_NULL, &session))
== VI_SUCCESS) {
// Check to see if it is an Agilent E6432
if (viIn16(session, VI_A16_SPACE, 0,
&manufacturer) == VI_SUCCESS
// 0xCFFF is Agilent Technologies’s ID Code
&& manufacturer == 0xCFFF
&& viIn16(session, VI_A16_SPACE, 2,
&type) == VI_SUCCESS
// 0x5290 is the Agilent E6432’s ID Code
&& (type & 0xFFF0) == 0x5290) {
// This is an Agilent E6432 // at address
DeviceName.
}
viClose(session);