LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate 1kHz triangle wave

Solved!
Go to solution

I have tried to generate a 1kHz triangle wave but I can only generate the triangular wave with a very low frequency (~0.01Hz). How can I use this method to generate high-frequency waves? I cannot use any other VIs because that other VIs will only output the triangle waves as either dynamic data type or waveform data type.

 

Further, if there are any ways to generate high-frequency triangular waves, please let me know.

 

In addition, I want to generate 1kHz triangle wave so that I can use it as a carrier wave (for PWM) generation. And, I need to compare these with reference waves which will be of double data type. Further, I also want to output the triangle waves using NI PXIe-7821R and I need a double data type to do that.

0 Kudos
Message 1 of 4
(2,128 Views)
Solution
Accepted by topic author Bijen

use a timed while loop (1khz) and set dt = 1 ?

 

https://zone.ni.com/reference/en-XX/help/371361R-01/glang/timed_loop/

0 Kudos
Message 2 of 4
(2,105 Views)

Thank you for the suggestion.

0 Kudos
Message 3 of 4
(2,073 Views)

can you give us the file of the triangle gen but dowgrade the version to lv13.0 , thank you

0 Kudos
Message 4 of 4
(337 Views)