NI-FGEN Examples for Microsoft Visual C/C++ (C examples)

NI-FGEN C Function

NI-FGEN
Examples for Microsoft Visual C/C++ (C examples)


NI-FGEN ships with several examples for use with Microsoft Visual C/C++ (MSVC). These examples can help you develop software, and they illustrate how to perform the most common operations with the NI signal generators.

The MSVC examples were built and tested using Microsoft Visual C.

Note  Use the NMAKE utility in MSVC to build the examples. From an MS-DOS session, navigate to the location of the example files specified in the NI-FGEN Instrument Driver Readme.

Use the msvc vcvars32.bat to set up the variables necessary for building examples. To build an example, run nmake /f examplename.mak. The executable is built to the debug subdirectory.

The source code for these examples as well as all of the input and output values, is documented, making it easy to change the code to perform different types of generation.