Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Help communicating using GPIB in VB

Hi, I am a hardware test engineer and I am trying to learn VB to do some lab level automation communicating through gpib.  For right now to start I just want to be able to set up, change around some settings, source, and measure using a Keithley source meter.  I have read through the NI-488.2 manual and have looked at the different commands/examples as well as the Keithley manual and their list of commands.  From the way I am understanding it if I wanted to write information to the meter I would send for example a gpib write command (ibwrt) which you tell which gpib card you are talking to as well as which ever command to send to the source meter??  I am confused though.....should every single command that I send to the keithley meter be sent using the 488.2 gbip commands??  If anyone has a really basic example they can refer me too, or if anyone has any thoughts comments on how to begin that would be great.  I have been looking all over this site and the net trying to find some basic programming examples in VB using gpib but I cannot find anything.  Also which version of VB would be best for data acquisition through gpib?  I know I could do this in LabView as well and would be easier to learn, but nobody at my company uses LabView only C, MATLAB, and VB.  Thanks for your help!
0 Kudos
Message 1 of 3
(4,568 Views)

It has been a very long time since I used VB and can't really answer all of your questions about it but there are examples in C:\Documents and Settings\All Users\Documents\National Instruments\NI-488.2\Examples\Visual Basic (if you are using XP). Did you try Start>All Programs>National Instruments>NI 488.2>Examples?

 

Yes, every command you write to the instrument has to use either the 488.2 functions or VISA functions. If you use VISA, your program will be more portable. There are examples for VISA as well.

 

You might also search the  Instrument Driver Network for an existing driver for your instrument. You will also find links there on what a driver is and how to use one.

Message 2 of 3
(4,548 Views)

Keithley has some samples on their website for communicating to an SMU (2400 series) with VB

 

Examples: //http://www.keithley.com/support/keidoc_searchresult?keyword=2400&item_type=Example+Program 

Message 3 of 3
(4,545 Views)