AnsweredAssumed Answered

Need a little help connecting to E8363B PNA in Visual Basic

Question asked by aaronsky12 on Dec 3, 2009
Latest reply on Dec 3, 2009 by aaronsky12
Hello, I am new to the world of programming network analyzers.  I have an E8363B PNA connected via GPIB to an external PC (Windows XP). I installed Agilent IO Libraries Suite 15 on my PC. The programming environment is VBA (Visual Basic for Applications) in Excel. I would like to send a simple SCPI command via GPIB like:  Write "SYSTem:PRESet"
The program I wrote is:

Sub testprogram()
GPIB.Write "SYSTem:PRESet"
End Sub

Of course, this program results in an error, because I have not referenced the appropriate Agilent IO libraries anywhere in the program. The problem is that I just don't know the right command(s) to do this! I was unable to find even one example program online that has this simple but vital piece of code (partly, because I'm not too sure what I'm looking for).

Any help would be appreciated. Thank you!