Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
2 ratings:
 4 out of 5     Rate this Document

VISA and GPIB Application Development Using Visual Studio 6.0 or Below

Hardware: GPIB

Problem:
I'm trying to develop a VISA or GPIB application using one of the a Visual Studio languages. How can I go about doing this?

Solution:
The drivers for GPIB and VISA ship with a *.bas file that contains the prototypes for all of the functions to make it easy to call the dll. Simply add the .bas file to the Visual Studio project and then all of the functions of the driver are available for use. To learn more about the functions just double-click on the .bas file in the project. The actual implementation of function calls and how to use them is still the same.

The default locations for the files are as follows:
VISA - C:\VXIPNP\WinNT\include\visa32.bas
GPIB - C:\Program Files\National Instruments\NI-488.2\Languages\Visual Basic\Vbib-32.bas

Note: Some functions are not available for use in Visual Basic due to the language differences.  You can find these in the driver's help file by looking at the Visual Basic Syntax section for a given function. 

Related Links:
KnowledgeBase 3CHC5G5B: VISA and GPIB application development using C# or VB.NET
Drivers and Updates: NI-VISA 4.3 - PharLap, VxWorks, Windows 2000/CE/Mobile 5/Vista x64/Vista x86/XP
Drivers and Updates: NI-488.2 2.5 - Windows 2000/Vista x64/Vista x86/XP - Support for Microsoft Windows Vista

Attachments:





Report Date: 10/02/2006
Last Updated: 04/22/2008
Document ID: 421G5BGJ

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit