Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

NI-FGEN Simulated Devices

Hardware: Signal Sources (AWG/FG/AO)

Problem:
I would like to program using the NI-FGEN driver but do not yet have the hardware. How can I simulate the device so that I can test my programming?

Solution:
The NI-FGEN driver allows you to simulate a device so that you can run your application without the hardware present.

To simulate a function generator, follow these steps:
  1. Initialize the NI-FGEN task with an niFgen Initialize with Options.vi.
  2. Create a constant on the Option String terminal.
  3. Change the Simulate=0 section to Simulate=1.
  4. To specify a device, enter the following syntax in Option String.

    DriverSetup=Model:<driver model number>;BoardType:<module type>;MemorySize:<size of onboard memory in bytes>

    Option String Examples:
    NI PXI-5404 - Simulate=1,DriverSetup=Model:5404;BoardType:PXI
    NI PCI-5421 - Simulate=1,DriverSetup=Model:5421;BoardType:PCI;MemorySize:268435456

See the screenshot below for an example of this code.



Related Links:
Products & Services: NI Signal Generators Home
Product Reference: NI Signal Generators Help
KnowledgeBase 3TUECLQ4: NI-SCOPE Simulated Devices
KnowledgeBase 48PEI084: NI-DMM Simulated Devices

Attachments:
simulate_FGEN.gif




Report Date: 03/09/2007
Last Updated: 09/19/2008
Document ID: 478I5K84

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit