Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Nov 2, 2008


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Writing and Reading NI Hierarchical Waveform Storage (NI-HWS) Files in Visual Basic 6.0

0 ratings | 0.00 out of 5
Print

Overview

This example program illustrates how to write to and read from National Instruments Hierarchical Waveform Storage (HWS) files in Visual Basic 6.0. This program uses the NI-HWS wrapper for Visual Basic 6.0 to expose the NI-HWS C Functions. The NI-HWS wrapper for Visual Basic 6.0 can be downloaded from the Knowledgebase linked below.

Downloads

Filename: nihws_write_read_vb6.zip
Requirements: View

This example demonstrates how to write to and read from Hierarchical Waveform Storage (HWS) files. This program was written using the National Instruments Hierarchical Waveform Storage (NI-HWS) API, version 1.4.2. The NI-HWS driver and documentation is installed as a component by various higher level drivers, such as NI-Scope, NI-FGEN, and NI-HSDIO. These drivers can be downloaded from the Drivers and Updates page at www.ni.com.

This example uses the NI-HWS Visual Basic 6.0 wrapper to expose the HWS functions available in the ANSI C HWS API. This wrapper is included in this example as niHWS.bas in the Modules section of the Project Explorer, and can be downloaded from the following Knowledgebase:

KB 42AIQMX1: Microsoft Visual Basic 6.0 Wrappers for NI Sync, NI TClk, and NI HWS.

Documentation for the NI-HWS functions can be found in the NI Signal Generator Help or NI High-Speed Digitizers Help, found under Start > Programs > National Instruments > NI-SCOPE > Documentation or under National Instruments > NI-FGEN > Documentation

The example illustrates how to write and read various samples of various data types to and from an HWS file. Click the Start button to compile and run this example program. From the GUI, type in the name and path where you would like to write or read an HWS file. Click the Write HWS File Button to write sample data to an HWS file.  Click the Read HWS file button to read that sample data and display it on the GUI by data type.

Requirements


Filename: nihws_write_read_vb6.zip

Software Requirements


Language(s): Visual Basic
Additional Software: Visual Basic 6.0

Hardware Requirements


Hardware Group: Digital I/O (DIO), High-Speed Digitizers (Scopes), Signal Source (AWG/FG/AO)
Driver: NI-FGEN 2.4, NI-SCOPE 3.2

 
0 ratings | 0.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).