Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Can u advice me if i can use C# .NET VISA drivers to control Agilent's 8960 using NI GPIB

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

 

 HelpFails-dexplorer.JPG

0 Kudos
Message 11 of 14
(4,290 Views)

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.

0 Kudos
Message 12 of 14
(4,285 Views)

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#. 

 

0 Kudos
Message 13 of 14
(4,282 Views)

 

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.

0 Kudos
Message 14 of 14
(4,277 Views)