Finding Examples

NI-FGEN includes several examples that demonstrate basic signal generator applications. Access examples depending on your programming environment and the driver APIs you use to control your instrument.

NI Example Finder

The NI Example Finder is a utility that organizes examples into categories and allows you to browse and search installed examples. For example, search for "FGEN" to locate all waveform generator examples. You can see descriptions and compatible hardware models for each example or see all the examples compatible with one particular hardware model.

To locate examples using the NI Example Finder within LabVIEW, select Help » Find Examples and navigate to Hardware Input and Output » Modular Instruments.

Installed Example Locations

The installation location for NI-FGEN example programs differs by programming language and development environment. You can access the examples through the Start menu, by navigating to Start » All Programs » National Instruments » » Examples.

Refer to the following table for information about example program installation locations.

Table 14. Installed NI-FGEN Example Locations
Option Installed Example Location
LabVIEW <LabVIEW>\examples\instr\niFgen, where <LabVIEW> is the directory for the specific LabVIEW version that is installed.
Visual C/C++ Users\Public\Documents\National Instruments\NI-FGEN\NI-FGEN Examples\c
LabWindows/CVI Users\Public\Documents\National Instruments\CVI\Samples\IVI\IviFgen
.NET 4.0 Users\Public\Documents\National Instruments\NI-FGEN\NI-FGEN Examples\DotNET 4.0
4.5 Users\Public\Documents\National Instruments\NI-FGEN\NI-FGEN Examples\DotNET 4.5
Python Refer to NI-FGEN Python documentation for details.

Refer to the NI-FGEN Tutorial section in NI-FGEN User Manual to understand the basic programming steps.

Common Example Programs

NI-FGEN includes a collection of programming examples to help you get started developing an application. You can modify example code and save it in an application. You can use examples to develop a new application or add example code to an existing application.

The following NI-FGEN example programs supported on the PXIe-5433 demonstrate common functions and operations:

  • Fgen Basic Arb Waveform—Demonstrates how to configure your instrument to generate a basic arbitrary waveform.
  • Fgen Basic Standard Function—Demonstrates how to configure your instrument to generate a basic standard waveform.