06-08-2022 05:35 AM
Currently using LabVIEW FPGA. I have a wait function that I want to make totally configurable, is there a way to programmatically change the units the wait function uses? Something like changing from milliseconds to ticks from a front panel.
06-08-2022 06:37 AM
@markel580 wrote:
Currently using LabVIEW FPGA. I have a wait function that I want to make totally configurable, is there a way to programmatically change the units the wait function uses? Something like changing from milliseconds to ticks from a front panel.
It's all (simple) math.
You can't make the wait programmable, but you can make your own wait with an enum as input.
For instance, if you're waiting for ticks, and want to provide ms:
50 ms X 40 Mhz = 50 X 40000 = 200000 ticks.
Assuming you're running on 40 MHz.
06-08-2022 07:36 AM - edited 06-08-2022 07:39 AM
wiebe@CARYA wrote:
@markel580 wrote:
Currently using LabVIEW FPGA. I have a wait function that I want to make totally configurable, is there a way to programmatically change the units the wait function uses? Something like changing from milliseconds to ticks from a front panel.
It's all (simple) math.
You can't make the wait programmable, but you can make your own wait with an enum as input.
For instance, if you're waiting for ticks, and want to provide ms:
50 ms X 40 Mhz = 50 X 40000 = 200000 ticks.
Assuming you're running on 40 MHz.
Edit: oops, nvm my solution just won't work.