Signal Generators

cancel
Showing results for 
Search instead for 
Did you mean: 

For the Arbitrary Waveform example, is there a way to adjust the frequency?

Using the NI PXI-5422 and LabVIEW 8.0 I am running the nifgen_Arbitrary_Waveform_Example. Is there any way to add a dial for the frequency and allow for changes in this value? If so where?
 
Thank you.
0 Kudos
Message 1 of 2
(6,493 Views)

Hi Jamie,

The example you are looking at uses the sub VI ‘niFgen Util Create Waveform Data’, which takes the number of points, and creates the frequency by using 1/ number of points. You can notice that this sub VI takes the cluster of waveform data, and uses the appropriate sine, cosine, square, etc VI to create the actual waveform. Please note that the frequency is the frequency of sine wave in normalized units of cycles/sample. You can find more on this here.


If you would like to create your own waveform, you can replace the 'Util Create Waveform Data.vi' and use the appropriate ‘create waveform’ and put a control on the front panel for the frequency.

David L.
Systems Engineering
National Instruments
0 Kudos
Message 2 of 2
(6,477 Views)