From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I output a voltage at 50Hz

I m designing a controller and I need to output a voltage every 0.02 ms (50Hz).
I can see how to do that with the WFM function after loading a buffer.
In my case, the next voltage output is recomputed between each iteration: I cannot load output values in advance.
Thanks for help.

Mido
0 Kudos
Message 1 of 3
(2,444 Views)
See attached VI. Hope you have 7.1
Randall Pursley
0 Kudos
Message 2 of 3
(2,438 Views)
If you know ahead of time what kind of signal to output, pre_generate it and then output it using one of the examples of buffered generation.
A problem with timed loop may arise if the time it takes to execute the Analog output write command is way more than 0.02 seocnds (which can be the case)
0 Kudos
Message 3 of 3
(2,431 Views)