Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling VISA functions from VB.NET

Hi!
 
I am just converting my VB 6.0 code to VB.NET.
I used the visa32.bas files as specified under http://www.vxipnp.org/vpp432.pdf to include the VISA functionality in VB 6.0
(I did not include the reference as the software should also is installed on PC's which do not have VISA installed).
 
Is there a file like "visa32.vb" provided by National Instruments to include in VB.NET to get the same functionality?
Or how do I include all VISA functions for VB.NET in a way that the program can also be executed on PC with VISA not installed.
I did not find any files on my PC which meet this description.
 
(I started to convert visa32.bas with the Microsoft Conversion Wizard - this works fine, but I search for a more elegant solution.
I also wonder if function like viScanf can be included in VB.NET ???).
 
 
Best regards,
 
Martin.
0 Kudos
Message 1 of 3
(5,588 Views)
Martin,

perharps this link will help you. on the other hand, if you have measurement studio 7, there are a bunch of examples for VISA and VB shipped with.
regarding your question with the installation of VISA on the target machine:
you will always need some kind of VISA runtimeengine. but you can download this at www.ni.com (->drivers and updates->VISA runtime).


Norbert B.
- NI Germany
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 3
(5,572 Views)
Actually you do not need Measurement Studio to use VISA in VB.NET. VISA now provides a native .NET interface for use with C# and VB.NET. It comes with VB.NET and C# shipping examples as well. You will need to enable .NET support in the VISA installer feature tree to get this support. So if you have access to VISA drivers, you should be able to install the support you need.

See the following KB for more information.

Message Edited by bilalD on 02-08-2006 09:22 AM

Bilal Durrani
NI
Message 3 of 3
(5,560 Views)