ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

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
(650 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
(648 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
(624 Views)

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

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
-------------------------------------------------------
https://github.com/ZhiYang-Ong
Message 4 of 5
(599 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
(571 Views)