Using NI-HWS in C/C++

NI Hierarchical Waveform Storage

Using NI-HWS in C/C++

This topic assumes that you are using a C/C++ ADE to manage your code development and that you are familiar with the ADE.

To develop an NI-HWS application in C/C++, follow these general steps:

  1. Open an existing or new C/C++ project.
  2. Make sure that you include the NI-HWS header file (niHWS.h) as follows in your source code files: #include "niHWS.h"
  3. Specify the directory that contains the NI-HWS header file under C/C++»Preprocessor»Additional include directories. The NI-HWS header files are located in the <NI-HWS>\Include directory.
  4. Add the NI-HWS import library (nihws.lib) to the project under Link»General»Object/Library Modules. The NI-HWS import library files are located in the <NI-HWS>\Lib directory.
  5. Add NI-HWS function calls to your application.
  6. Build your application.
Tip  By default, C passes parameters by value. Remember to pass pointers to variables when you need to pass by address.