NI-FGEN Creating an Application with Visual Basic

From NI Signal Generator

NI-FGEN
Creating an Application with Visual Basic


This topic assumes that you are using Visual Basic to manage your code development and that you are familiar with the ADE.

To develop an NI-FGEN application in Visual Basic, follow these general steps:

  1. Open an existing or new Visual Basic project.
  2. Create the following files, which are necessary for your application, and add them to your project:
    • .frm (form definition and event handling code)
    • (optional) .bas (Visual Basic generic code module)
    • (optional) .cls (Visual Basic class module)
  3. Add a reference to the National Instruments Function Generator library (NI-FGEN), which is part of niFgen_32.dll by selecting Project»References, and then National Instruments Function Generator.
    Note  If you do not see the NI-FGEN library listed there, click Browse and locate niFGEN_32.dll in the directory listed in the NI-FGEN Instrument Driver Readme.
  4. Use the Object Browser <F2> to find function prototypes and constants.
  5. Add NI-FGEN function calls to your application.
  6. Run your application by clicking Run»Start.