LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read the current frequency in frequency list mode

I have a PXI-5406 which I am using to generate sinewaves in the frequency list mode.  I use a software trigger to step through the frequency list (see shipped example "Fgen Sweep Generator.vi").  Now I would like some way of reading which frequency the hardware is generating from the frequency list.  In the standard mode it appears you can use niFgen.Frequency to pull it off.  This, however, does not seem to work in frequency list mode.  Does anyone know of a good way to read that frequency value from hardware without manually indexing through the original list passed into the create list vi?  

0 Kudos
Message 1 of 3
(2,121 Views)

Hi manjagu,

 

Unfortunately, there is no easy way to read the frequency that is comparable to the property node found in the standard function mode.  However, you can create a software workaround to display the correct index of the array that is being output based on the number of times you send the software trigger.  For example, you could place a software trigger in a while loop and use the index number of the while loop to index your frequency array. 

Sarah Yost
Senior Product Marketing Manager
0 Kudos
Message 2 of 3
(2,104 Views)
Thanks for looking at this. I ended up doing something similar to what you suggested. Oddly, however, the software trigger' which is routed to PFI0, doesn't always latch in the ARB, but will increment in the loop thus giving erroneous results. Must be the sync clock isn't set up properly. That's why reading the value from the hardware would have been nice. Thanks for the help.
0 Kudos
Message 3 of 3
(2,102 Views)