From 11:00 PM CDT Friday, May 10 – 02:30 PM CDT Saturday, May 11 (04:00 AM UTC – 07:30 PM UTC), ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Power Electronics Development Center

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I generate a triangular wave in MyRIO FPGA

Hello all,

I am trying to build a PWM sinal bycomparing a sinusoidal signal with atriangular wave i can see a in built function for sine wave but not for triangular wave Can abyone help me?.

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

Hi,

the triangular wareform can be simply generated by an up counter, if you want an asymmentrical carrier. Otherwise, you can implement and up-down counter on the FPGA to have symmentrical carrier signal.

Use smallest integer data-type that fits your requirements, FPGA resources are precious.

0 Kudos
Message 2 of 2
(2,914 Views)