From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-20-2013 03:42 PM
I suck at programming and the API's syntax recommendations on http://www.ni.com/pdf/manuals/321038g.pdf do not work.
I'm using Visual Basic 2010 Express. I can get many messages to work but I think I'm leaving data in the buffer with some commands. I see that IBCLR clears a specific device in the buffer but I'm having a hard time with they syntax.
Currenlty I'm trying
GpibDevice.Write("ibclr(pna)") but it does not work.
Any guidance is greatly appreciated.
Solved! Go to Solution.
06-20-2013 03:46 PM - edited 06-20-2013 03:47 PM
I wouldn't be using functions like ibclr( ) etc
Look at the examples that are installed automatically when you install NI-VISA when Visual Studio was already installed.
Also for Agilent PNAs, you should read their documentation on programming them very carefully. One decision you will have to make right away is whether to use SCPI or COM.
06-20-2013 05:10 PM
Why not?
06-20-2013 05:26 PM
fyi,
the DotNet 4.0 (Visual Basic 10) examples does not have that many examples (only 3). I need more examples on how to manipulate Markers Mins, Max, Values etc..
06-20-2013 07:47 PM - edited 06-20-2013 07:48 PM
@high-Q wrote:
I need more examples on how to manipulate Markers Mins, Max, Values etc..
You need to see if Agilent has examples that are that specific.
As I wrote before, READ the Agilent Help files. You won't be able to get much done without it.
06-21-2013 10:56 AM
OK, thanks.