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

How Can I Change my Arbitrary Waveform on the Fly with my Function Generator?

Hardware: Signal Sources (AWG/FG/AO)>>Arbitrary Waveform and Function Generators

Problem:
I have a National Instruments Arbitrary Waveform Generator using the FGEN driver.  How can I change the arbitrary waveform on the fly?

Solution:
To change the parameters of the arbitrary waveform or output a new waveform you will need to use the following steps:
  1. Abort the generation by using the niFGEN Abort Generation vi.
  2. Before you load the new arbitrary waveform to memory you will need to clear the old information using the niFGEN Clear Arbitrary Memory vi.
  3. Load the new waveform. The picture below uses the niFGEN Util Create Waveform Data.vi to create the waveform and the niFGEN Create Waveform (DBL).vi to load the waveform into the arbitrary waveform generator's memory.
  4. If needed, create a new arbitrary sequence.
  5. Configure the arbitrary sequence.
  6. Use the niFGEN Initiate Generation vi to restart the generation.

* There is an attached example below that was written in LabVIEW 8.0 that demonstrates this behavior.



Related Links:

Attachments:
niFgen_arb_value_change.vi
arbonfly.JPG




Report Date: 01/17/2008
Last Updated: 01/18/2008
Document ID: 4HGGS2DE

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