Example Programs

NI-FGEN ships with several examples that demonstrate basic signal generator applications. You can access these examples through the Start menu, by navigating to Start»All Programs»National Instruments»NI-FGEN»Examples.

Note    The NI-FGEN examples assume that you are already familiar with the ADE in which you will be programming. If you are unfamiliar with the ADE, consult an introductory text on the ADE before you begin the studying the NI-FGEN examples.

NI-FGEN provides the same functionality in two different formats—as virtual instruments (VIs) in LabVIEW and as functions in C-based programming languages.

Basic Steps

The tutorial explains how to complete the following programming steps:

  1. Initialize the session
  2. Configure an application
  3. Initiate generation
  4. Abort generation
  5. Close the session
  6. Retrieve error information

After you understand the programming process outlined in this tutorial, you can find advanced information about programming specific signal generator features with the NI-FGEN instrument driver in the Features section.