09-18-2008 09:24 AM - edited 09-18-2008 09:26 AM
Hello all,
I'm using LabVIEW 8.5.1 and FPGA-Toolkit 8.5.1.
I created a FPGA-VI which uses 30MB(!) of disk space, but the size of front panel, block diagram, code and data is only 1,2KB (see picture).
If I copy all code from the block diagram to a new VI, the file size shrinks to 1,3MB disk space.
Does anyone have an explanation? Is the VI corrupt?
Uli
09-18-2008 02:28 PM
I just posted this somewhere else, in case you're not familiar: In case you don't already know, once your code is written using LabVIEW, to be able to run on the FPGA machine, it has to be compiled, or even transformed, into a series of logic elements. The process starts by tranforming the LabVIEW code into VHDL (or verilog, I don't know which one they use) and then the Xilinx tool (company who makes the FPGA) transform this file into a complex series of logic operations (down to the level of AND and OR gate basically).
If you want to download the code again onto the board, it would make lots of sense to save all the work done on the HD to save yourself all the compile time the next time. My guess is that the VHDL file, the bit file (raw info downloaded to the FPGA) and other parts or results from the process are saved along the way. Hopefully someone from NI can let us know if it is true.
09-19-2008 02:36 AM
Hello OlivierL,
thank you for your reply.
OlivierL wrote:
..., it would make lots of sense to save all the work done on the HD to save yourself all the compile time the next time. My guess is that the VHDL file, the bit file (raw info downloaded to the FPGA) and other parts or results from the process are saved along the way. Hopefully someone from NI can let us know if it is true.
You are right, the bit file is saved, but it is a separate file (I think ".lvbit", but I'm not at work, so I can't have a look.)
As I told earlier, I copied the code to a new VI. Then I compiled it, but the size of the VI remained at 1.3MB. So I don't think there is something from the compilation in the VI.
Meanwhile I found two older Versions of the VI. The first one uses 12MB on disk, the second 26MB on disk, although there are only few difference in code between the versions.
Uli
10-15-2008 01:40 PM
Hello,
a mass compile reduced the file size to 1.3MB again.
According to this KB: How Can I Force a VI to Recompile? upgrading from 8.2 to 8.5 could be a reason. Maybe,...
Uli
10-15-2008 06:45 PM
Hi Uli,
It doesn't really gives you a reason why the original VIs was so big though. If you figure it out over time, let us know! I'd be curious to know what the VI kept in memory to be that size. It may as well be a bug from LV so I wouldn't spend too much time on it.
Olivier