LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FPGA square wave generator

Is it possible to change the range of the duty cycle of FPGA square wave generator (for example 0-100 instead of 0-1)? I need this option since I can't use floating point on the FPGA target VI. I am using sbRIO 9632 in stand-alone application, so I can't use division on the host VI.

0 Kudos
Message 1 of 2
(2,211 Views)

No, it is inherently in units of periods so it needs a number between 0 and 1. If you have a number between 0-100, you can multiply by .01 to avoid the divide. Note that fixed-point division is allowed on the FPGA, but for static scaling like this using multiplication is usually a better choice.

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