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

Using NI-HSDIO with Microsoft Visual Basic 6.0

Hardware: Digital I/O (DIO)>>High-Speed>>PXI-6542, Digital I/O (DIO)>>High-Speed>>PXI-6551, Digital I/O (DIO)>>High-Speed>>PXI-6552, Digital I/O (DIO)>>High-Speed>>PXI-6561, Digital I/O (DIO)>>High-Speed>>PXI-6562, Digital I/O (DIO)>>High-Speed>>PCI-6541, Digital I/O (DIO)>>High-Speed>>PCI-6542, Digital I/O (DIO)>>High-Speed>>PCI-6551, Digital I/O (DIO)>>High-Speed>>PCI-6552, Digital I/O (DIO)>>High-Speed>>PCI-6561, Digital I/O (DIO)>>High-Speed>>PCI-6562, Digital I/O (DIO)>>High-Speed>>PXI-6541

Problem:
How do I write an application in Microsoft Visual Basic 6.0 that uses the National Instruments NI-HSDIO driver? Are there any examples that I can use?

Solution:
National Instruments does not currently offer a native Microsoft Visual Basic 6.0 API for High Speed Digital I/O instruments. 

To write an application in Microsoft Visual Basic 6.0 using the NI-HSDIO driver you will need to use the attached wrapper. This wrapper was developed using the ANSI C API that is installed with the NI-HSDIO driver.

This wrapper was created for use with NI-HSDIO version 1.4.2 and above.

To use this wrapper with an existing Visual Basic 6.0 project, please take the following steps:
  1. Go to the Project Explorer.
  2. Right-click on the name of your project
  3. Select Add » Module
  4. Select the attached hsdio.bas file.
If you are looking for Microsoft Visual Basic 6 examples that use NI-HSDIO, they can be found in the related links section of this document.

Related Links:
Developer Zone Example: VB6 niHSDIO - Static Generation
Developer Zone Example: VB6 niHSDIO - Static Acquisition
Developer Zone Example: VB6 niHSDIO - Static Generation and Acquisition
Developer Zone Example: VB6 niHSDIO - Dynamic Generation with Script
Developer Zone Example: VB6 niHSDIO - Dynamic Acquisition Software Trigger
Developer Zone Example: VB6 niHSDIO - Dynamic Generation and Acquisition-Source Synchronous
Developer Zone Example: VB6 niHSDIO - Stimulus Response-Load from HWS File
KnowledgeBase 3939UN5B: Microsoft Visual C# and Visual Basic .NET Wrappers for National Instruments Modular Instruments Drivers

Attachments:


niHSDIO_VB6.zip


Report Date: 04/11/2006
Last Updated: 02/06/2008
Document ID: 3WA8DDLE

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