NI-FGEN Examples for Measurement Studio

NI Signal Generator

NI-FGEN
Examples for Measurement Studio


NI-FGEN ships with several examples for use with Measurement Studio. These examples can help you develop software, and they illustrate how to perform the most common operations with the NI signal generators.

Microsoft Visual Basic 6.0 Examples

These examples provide an overview for using NI-FGEN in Visual Basic.

To use an example in Visual Basic, open the project file (.vbp) of the example you want to run. For the installation locations of the project files, Refer to the NI-FGEN Instrument Driver Readme.

When developing applications with Visual Basic and NI-FGEN, you must include the NI arbitrary waveform and function generator library as one of the references for the project. To select the NI Function Generator library from Visual Basic, select Project»References, and then select National Instruments Function Generator. If the reference is not already listed, you can add the reference by browsing and selecting the niFgen_32.dll in the directory specified in the NI-FGEN Instrument Driver Readme.

Microsoft Visual C++ 6.0 Examples

To use an example, open the workspace (.dsw) of the example you want to run. Refer to the NI-FGEN Instrument Driver Readme for the location of the example files. Build the example. The executable is created in the \debug directory of the respective example.

The source code for these examples is documented, as well as all of the input and output values, to make changing the code to perform different types of generation easier.

Microsoft Visual C++ .NET 2003 Examples

To use an example, open the solution file (.sln) of the example you want to run. Refer to the NI-FGEN Instrument Driver Readme for the location of the example files. Build the example. The executable is created in the \debug directory of the respective example.

The source code for these examples is documented, as well as all of the input and output values, to make changing the code to perform different types of generation easier.