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:
- Open an existing or new C/C++ project.
- Make sure that you include the NI-HWS header file (niHWS.h) as follows in your source code files: #include "niHWS.h"
- 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.
- 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.
- Add NI-HWS function calls to your application.
- Build your application.
Tip By default, C passes parameters by value. Remember to pass pointers to variables when you need to pass by address. |