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

Microsoft Visual Basic 6.0 Wrappers for NI Sync, NI TClk, and NI HWS

Hardware: Modular Instruments

Problem:
I am trying to write an application in Microsoft Visual Basic 6.0 that uses NI modular instruments and PXI products. There is no Visual Basic 6.0 programming interface available for NI-Sync, NI-TClk, and NI-HWS. How can I use these drivers from VB 6.0?

Solution:
National Instruments currently does not offer a native Visual Basic 6.0 programming interface for the NI-SYNC, NI-TClk, and NI-HWS drivers. However, the attached wrappers can be used to access the functions within these drivers from Visual Basic 6.0. The wrappers are based on ANSI C support which is included with each of the drivers.

 

Drivers supported by Visual Basic 6.0 wrappers are as follows:

  • NI-Sync 2.0.0
  • NI-TClk 1.5.1
  • NI-HWS 1.4.2

To use the wrappers attached below from an existing project, add them to the solution by right-clicking on the project name in the Solutions Explorer. Select Add»Module, and in the Existing Item tab, browse to the location of the .bas file for the driver of your choice. Click OK to add the wrapper to your project.

For more information on using modular instruments with Visual Basic 6.0.  See the related links below.



Related Links:
KnowledgeBase 3WA8DDLE: Using NI-HSDIO with Microsoft Visual Basic 6.0
KnowledgeBase 1USF95DM: Using NI-SCOPE with Microsoft Visual Basic 6.0
KnowledgeBase 4IADEPDE: Using NI-FGEN with Microsoft Visual Basic 6.0
Developer Zone Example: VB6 NI-SCOPE - Synchronization of Multiple High-Speed Digitizers Using NI-TClk
Developer Zone Example: Writing and Reading NI Hierarchical Waveform Storage (NI-HWS) Files in Visual Basic 6.0

Attachments:


niSync_VB6.zipniTClk_VB6.zipniHWS_VB6.zip


Report Date: 10/11/2006
Last Updated: 05/15/2008
Document ID: 42AIQMX1

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