Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the frequency on the fly faster?

Can someone help me with an example showing how to modify the VI attached?

The aim is to get to change the frequencies on the fly, by reading from an array. Each element (frequency) must run for 10 milliseconds before the next one is read (as fast as possible) and run also for 10 milliseconds and so on.

I tried to put together a VI but I'm getting a big delay (about 2ms) when I change from a frequency spec. to another.

Is there any memory in the E-series 6024 that we can download the array of frequencies and run each of them for 10 milliseconds?

I would appreciate any help that would improve the VI I am using.
0 Kudos
Message 1 of 2
(3,106 Views)
I've attached an example program that generates a retriggerable pulse train with a switch cycle. You may need to download the counter palette to view this VI at: <>
Switch cycle operation is system dependent because the software must be used to reconfigure the system. However you may be able to streamline your code to make your while loop more efficient. For example, try precalculating the set of frequency specs you need into an array and then simply passing the array to the while loop. Then you won't lose as much critical processing time.

Hope this helps.

Kristi Hummel
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,106 Views)