Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to replace this" 'Check to see if GPIB Global variables are registered"?

Hi guys, I'm trying to use GPIB on my Windows 7 machine, as a result the old vbib-32.vb doesn't work for me and I'm using the new subs and functions in NI4882.dll. 
But there's this one piece of code I find at the beginning of many subs in the vbib-32.vb:

 

' Check to see if GPIB Global variables are registered
If (GPIBglobalsRegistered = 0) Then
Call RegisterGPIBGlobals()
End If

 

I'm not sure what's the equivalent for this piece of code in the new NationalInstruments.NI4882.dll .

Anyone know what to do?

0 Kudos
Message 1 of 2
(3,034 Views)

I'm not exactly sure how it relates to the 488.2 driver, but I did find that there are examples for using the 488.2 driver, which might be more helpful to getting you up and running:

http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Do-I-need-to-rewrite-gpib-32-vb-amp-niglobals...

Systems Engineer
SISU
0 Kudos
Message 2 of 2
(3,020 Views)