From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Registers or local variables to communicate sctl loops inside the FPGA

Hello all,

What is it better, to use registers to communicate between sctl loops or to use local variables? Is there any difference between them when the implementation inside the fpga is done?

 

Thanks in advance,

 

Imanol

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

If you implement your code in the top level FPGA VI you should avoid to use local variables because their front panel elements implement the interface to the Host and will need more resources.

 

Read this

 

FPGA Data Transfer

 

Optimizing FPGA VI's for Speed and Size

 

LabVIEW FPGA Optimization

 

Keep in mind that you can use SCTL's within While loops to optimize your code.

 

Hope it helps

Christian

 

 

 

0 Kudos
Message 2 of 2
(3,351 Views)