LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FPGA optimization of unhooked indicators

If I have a reentrant sub-vi with outputs that aren't hooked up in a certain use case (say it has 2 outputs, but I'll only need 1 or the other, not both, for any given usage in my code), will the FPGA compiler remove that section of code (and whatever computation in the sub-vi that served no purpose except to calculate that unused output) wherever terminals aren't used to save space?
0 Kudos
Message 1 of 3
(3,060 Views)
Also, are basic math functions that are hooked up to constants calculated and eliminated from taking space/time on the FPGA for the calculation?

What about things like the Linear Interpolation block? If y0, y1, and x are hooked up to numbers that can be determined at compilation time, is the block calculated and replaced by just a constant like it can be?
0 Kudos
Message 2 of 3
(3,051 Views)

280Z28 hello.

LabVIEW will execute all the function/VIs on its block diagram. It does not matter if an indicator is connected or not.

Functions that are hooked up to constants are not calculated before-hand in order to eliminate time/space consumption. The functions/VIs will still get computed. However, if you have a function and the inputs are all constants, you are better off calculating the result of the computation, then using the constant value in your FPGA application. That way you by-pass the computation by converting it to a simple constant value.

Efosa O.
NIAE 

0 Kudos
Message 3 of 3
(3,040 Views)