09-17-2020 03:11 PM
Hello,
I am attempting to swap frequencies after a certain amount of pulses. I am able to swap frequencies on this output, however it is not consistent in time because the frequency swapping is happening in a loop. Is there some sort of custom trigger or internal routing or something like this so I can swap frequencies after an exact amount of pulses on the same channel.
I attached my VI so far. I was just modifying a sample VI I found.
Thank you for the input.
Solved! Go to Solution.
09-17-2020 08:01 PM - edited 09-17-2020 08:03 PM
You're in luck. The 6320 is an X-series board and that means it supports buffered pulse train output!
It appears that you intend to change freq every 100 pulses. All you need to do is create a buffer of pulse specs that has 100 pulses at 5000 Hz and 100 at 500 Hz. A continuous sampling task will default to regenerating those pulses indefinitely. I've attached a minimal mod to your code to illustrate.
-Kevin P