LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FPGA Evaluation how many ticks for code section

Dear LV enthusiasts,

Is there any way to determine how many ticks are needed for the execution of a for-loop or a VI? The code isn't running as fast as required, and I would like to identify the bottleneck. Maybe some simulation?

Thank you in advance!

0 Kudos
Message 1 of 5
(185 Views)

Hi e1,

 

place timing functions in your code to measure the execution time!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(183 Views)

No answer to your question, but...

 

Put time critical code in a single cycle timed loop.

 

This ensures it takes 1 tick... It won't compile if it doesn't fit.

0 Kudos
Message 3 of 5
(159 Views)

Use the LabVIEW FPGA Desktop Execution Node to get accurate timing in simulation mode.

-------------------------------------------------------
Control Lead | Intelline Inc
Message 4 of 5
(134 Views)

@ZYOng wrote:

Use the LabVIEW FPGA Desktop Execution Node to get accurate timing in simulation mode.


First time I heart about that... 

 

I'll still stick to the SCTL whenever I can, so I hope I remember this tool if I ever need it.

0 Kudos
Message 5 of 5
(106 Views)