10-05-2012 02:52 PM
thanks for the reply.The help file does not open. It gives the following error as shown in image. Its because the system does not have this dexplorer.exe.
Can anyone let me know the following :
1. where are the corresponding documentation of VISA APIs
2. Is it available thru the help files.
3. How do i get the dexplorer.exe
10-05-2012 03:33 PM - edited 10-05-2012 03:34 PM
If you are using NI's GPIB, I don't understand why you feel compelled to use Agilent's VISA.
NI-VISA is perfectly fine and can be used to communicate with the Agilent 8960.
This is done all the time.
There are examples on how to use NI-VISA's C# .NET driver at C:\Users\Public\Documents\National Instruments\NI-VISA\DotNET4.0\SimpleReadWrite\cs
This is for a Windows 7 PC. Slightly different location on XP.
You can also get to it by Start Menu -> All Programs -> National Instruments -> VISA
I would strongly urge against letting the user type in whatever command they want.
This is a recipe for problems.
10-05-2012 04:13 PM
NYC,
Yes, i am using NI VISA (only) to communicate with Agilent device 8960. Am not using Agilent VISA.
Ya i saw this example in cs for simple read write , am also able to execute the command on my instrument thru my code using this example.
I do agree with u for not allowing user for typing the commands. We might change this in coming days.
But what i want to know was in my last post was following :
1. i can see following calls ( Open(), Dispose(), Query()) in that sample, - where can i see the documentation of these? I cld not find their documentation i.e i cld not see the documentation for NI-VISA .NET APIs , they ask to use documentation from .
All Programs -> National Instruments->VISA->Documentation-> NI-VISA .NET Framework help -> But when i click it gives an error saying
2. I found the documentation for NI VISA which uses viRead/viWrite etc for 'C', where can i find similar commands for C#.
10-05-2012 05:40 PM - edited 10-05-2012 05:41 PM
A Query is simply asking the instrument for information.
An Open is required to initiate communication with the instrument.
All of this does not change just because you are using C# vs some other language.
I suggest you re-read my previous post about where to find example programs for C# using NI-VISA.