Thread: NI Measurament Studio with Agilent 82357B - GPIB


Permlink Replies: 6 - Pages: 1 - Last Post: May 22, 2012 4:50 PM Last Post By: francescop
francescop

Posts: 4
Registered: 05/20/12
NI Measurament Studio with Agilent 82357B - GPIB
Posted: May 20, 2012 8:39 PM
Click to report abuse...   Click to reply to this thread Reply
Hi, i am trying to communicate via GPIB to an instrument with Measurament Studio and the Agilent 82357B .

Here is what i have done:

Installed Measurament studio
Installed NI 488 drivers
Installed NI Visa drivers
Installed Agilent Libraries
Enabled 488 Support on Agilent Connection Expert
Enabled Tulipvisa.dll in NI Automation Explorer

Then I tried to use a NI example for visual studio (Simple Read Write in C#) but when i try to write something via GPIB it says: Nonexistent GPIB interface.

I can see the GPIB in the Automation explorer and in the agilent connection expert, If i use NI Labwindows CVI i can communicate via GPIB without any problem.

Any hint?

Thank You
hognala

Posts: 199
Registered: 04/09/07
Re: NI Measurament Studio with Agilent 82357B - GPIB
Posted: May 21, 2012 10:44 AM   in response to: francescop in response to: francescop
Click to report abuse...   Click to reply to this thread Reply
Can you attach the source code/project/solution files so I can see whats going on?

Also, is this 32-bit or 64-bit Windows? 32-bit/64-bit/AnyCpu app?
francescop

Posts: 4
Registered: 05/20/12
Re: NI Measurament Studio with Agilent 82357B - GPIB
Posted: May 21, 2012 3:01 PM   in response to: hognala in response to: hognala
Click to report abuse...   Click to reply to this thread Reply
Attachment 1.jpg (106.9 KB)
Attachment SimpleReadWrite.zip (55.9 KB)
Attachment 2.jpg (114.6 KB)
Yes sure, i attached the solution, is the NI example called simpleReadWrite, i also attached two screenshot.

Please tell me if you need more information.

Thank you very much!
connectivity

Posts: 66
Registered: 03/29/12
Re: NI Measurament Studio with Agilent 82357B - GPIB
Posted: May 21, 2012 5:54 PM   in response to: francescop in response to: francescop
Click to report abuse...   Click to reply to this thread Reply
Attachment forum.png (160.9 KB)
Hi Francescop,

From the pictures it looks like you are using NI-VISA but can not find or connect to your GPIB instrument using our card. To do this:

1) Please download IO Libraries from http://www.agilent.com/find/iosuite and install it if you do not already have this. This will install the 82357B driver. When installing, use the default settings which installs Agilent VISA side by side with NI-VISA. After the install, connect your GPIB instrument. Find and setup your instrument by hitting the "Refresh All" in the included application Agilent Connection Expert.

2) Enable the tulip-for-passport driver in NI MAX (This will allow NI-VISA to use Agilent VISA and communicate with your Agilent card).
To do this open up Max and select:
Tools » NI-VISA » VISA Options... Once the VISA Options screen appears, Select Passports in the tree view (My System » VISA Settings » Passports). Enable the NiVisaTulip.dll by placing a check mark in the box beside it and then click on the Save button. You will need to restart MAX for the setting to take effect. Once MAX is restarted, you will be able to access your third party GPIB boards and give them VISA aliases under My System » Devices and Interfaces » Miscellaneous VISA Resources.

3) At this point Max should be able to scan and see instrument like that in the included picture after scanning. Use the board number and gpib address in your NI-VISA program.

Edited by: connectivity on May 21, 2012 5:55 PM
francescop

Posts: 4
Registered: 05/20/12
Re: NI Measurament Studio with Agilent 82357B - GPIB
Posted: May 21, 2012 6:07 PM   in response to: connectivity in response to: connectivity
Click to report abuse...   Click to reply to this thread Reply
Attachment screen1.jpg (216.5 KB)
thanks I did everything you said but still no luck.
I can see the instrument connected in automation explorer but the problem is that I can't see the GPIB usb adapter, I attached an image to explain.
I also tried to change from GPIB0 to GPIB1 but nothing changed.

The weird thing is that if I use Labwindows CVI i can communicate via GPIB, but i need to use Measurament studio.
hognala

Posts: 199
Registered: 04/09/07
Re: NI Measurament Studio with Agilent 82357B - GPIB
Posted: May 22, 2012 4:46 PM   in response to: francescop in response to: francescop
Click to report abuse...   Click to reply to this thread Reply
So, it looks like the NI4882 API used in Measurement Studio 2010 is not compatible with Agilent 488 (NI is not targeting the gpib-32.dll file any more).

Have you tried using the VisaNS .NET Library in Measurement Studio? It will let you talk to GPIB or any other bus. It will support the Agilent USB/GPIB adapter using Passport-for-tulip in NI-VISA.
francescop

Posts: 4
Registered: 05/20/12
Re: NI Measurament Studio with Agilent 82357B - GPIB
Posted: May 22, 2012 4:50 PM   in response to: hognala in response to: hognala
Click to report abuse...   Click to reply to this thread Reply
yes thank you, I used VisaNs and i can communicate!

Thanks a lot!

Point your RSS reader here for a feed of the latest messages in all forums