Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there official NIGLOBAL.vb and VBIB-32.vb for VB.net

For NI-GPIB software driver 2.1, there are NIGLOBAL.bas and VBIB-32.bas language interface declaration file for VB6, but there are no similar file for VB.NET.

In order to use NI-PCI-GPIB in VB.NET, we need create a dummy VB6 project dummy.vbp which only include NIGLOBAL.bas and VBIB-32.bas two modules, and apply VB.NET update wizard to ugrade these two *.bas module to VB.NET *.vb format. But there still have variable type "Any" need to manual modified to "String" or "Integer" ,and the "ByRef" need to be changed to "ByVal", with this modification I could successfully control the NI-PCI-GPIB with several command like "ibfind", "ibconfig", "ibwrt", "ibsic", "ibrd", "ibdev". But I am afraid that for other GPIB command there might have potential problem, I wonder why NI could not provide an official version of NIGLOBAL.vb and VBIB-32.vb for VB.NET, for NI to correct modify the file should be more reliable than user.
0 Kudos
Message 1 of 4
(6,449 Views)

Hi minchien,

National Instruments does provide native .NET interfaces to work with the NI-488.2 driver. It also provides some shipping examples to show how these interfaces may be used. There is a great Knowledge Base article on this subject on the National Instruments website:

KnowledgeBase 3CHC5G5B: VISA and GPIB application development using C# or VB.NET [broken link removed]

I hope this article will help you develop your application in VB.NET.

John M

Message 2 of 4
(6,436 Views)
Hi John,

Thanks for your information, now with your assistance I downd load the NI488.2(WIN32) Ver 2.3 for Windows 2000/XP the most updated software driver, now I could use the Native Language Interface for VB dot Net. And save the cost of purchasing MeasurementStudio. Thanks

Regards

minchien
0 Kudos
Message 3 of 4
(6,396 Views)

Hello Mr. John

 

We have developed our application in Visual Basic 6.0 using CWSerial ActiveX Control. Now we want to upgrade the same apllication and develop the application in VB.NET 2005. What is the equivalent of CWSerial of VB 6 in VB.NET 2005.

Also we have purchased 2 channel NI Scope but after loading the driver for NI Scope we are able to locate the sample program to develop application in VB.NET 2005.

 

Can u please help us to get the information.

 

Thank you .

 

R B Chavan

0 Kudos
Message 4 of 4
(5,148 Views)