Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

VB6, GPIB & USB multi-device commands

I am upgrading a legacy VB6 app, adding GPIB control using the GPIB-USB-HS device...what is the quickest way to get going?

 

I have tried out, with decent though slow luck,  some of the  "traditional commands"  & wonder if/how I might use some of the more modern multi-device commands?  Or perhaps I should be using something else entirely to miniumize the pain.  At this point we don't want to rewrite the entire VB6 app, just adding a bit of GPIB control.

 

 

Message Edited by AllGood on 02-01-2010 12:43 AM
0 Kudos
Message 1 of 4
(4,295 Views)

What kind of devices are you remotely controlling?

Did you check command syntax on the manuals?

Did you check the availability of drivers at vendor's website?

Regards

0 Kudos
Message 2 of 4
(4,280 Views)

I have the GPIB command list for my unit.  There are no drivers from the mfg.  The unit is connected to the pc via an GPIB==USB converter

 

My question is with VB6 & USB, can I use the 488.2 multi-device commands (or even something else)?  I tried the multi-commands, but VB does not recognize them.

 

 

 

Message Edited by AllGood on 02-01-2010 09:49 AM
0 Kudos
Message 3 of 4
(4,266 Views)
The USB would have no bearing on your code. You would be using the library that uses NI-488 or NI-VISA. NI-VISA is a higher-level protocol than NI-488 which allows you to change the communication protocol for a device without having to rewrite your code. You can take a look at the examples that ship with the respective libraries. For NI-488.2 the examples are in (on Windows) C:\Program Files\National Instruments\NI-488.2\Languages\Visual Basic. For NI-VISA the examples are in (for some reason) C:\Documents and Settings\All Users\Documents\National Instruments\NI-VISA\Examples\VB6.
0 Kudos
Message 4 of 4
(4,248 Views)