Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Using VB 2005 to communciate with GPIB devices

Hi all - I am hoping this will be an easy one for all of the experts out there...
 
I have a VB .NET program that was written for a different GPIB card, it died and we repalced it with a NI GPIB PCI card.
 
I am trying to get the code working again, but am having problems.
The old code used GPIB.send() GPIB.enter() to send and receive data from a particular device.
 
How can I do this with the NI card?  Do I need anything else?
 
 
Thanks
-Brian
0 Kudos
Message 1 of 2
(4,231 Views)

Brian,

A good place to start would be to use the examples code that have already been created.  Listed below are several examples that should help you communicate with your device.  Another reason you may not be able to communicate with the device is because it may have a different identity than your original GPIB card.  Please varify the GPIB card inside of MAX (Measurement & Automation Explorer), then use the example code to establish communication.

For further information please see the following links.
How to Perform Basic Serial Writes and Reads Using NI-VISA in Microsoft Visual C# .NET
Simple GPIB Communication in Visual Basic .NET with Measurement Studio 6.0 ActiveX Controls

Aaron R.
Applications Engineering
National Instruments



Message Edited by A_Ryan on 12-10-2007 09:29 AM
A_Ryan
AES
National Instruments
0 Kudos
Message 2 of 2
(4,202 Views)