09-27-2007 05:51 AM
Solved! Go to Solution.
09-27-2007 07:16 AM
I assume you are using LabVIEW 8.x as LabVIEW 7.1 did not have the bitfile reference.
I do not know what the technical details are but when using the VI reference you must be working from the Project explorer where the FPGA code was created. To use the FPGA code outside of that Project you MUST use the bitfile reference. This was a painful lesson to learn as the VI reference would cause a broken VI INIT when used outside of the project but would work fine when I opened the FPGA project to troubleshoot the problem. I don't remember seeing that caveat in the documentation anywhere .
09-27-2007 08:25 AM - edited 09-27-2007 08:25 AM
Message Edited by macgreggor on 09-27-2007 08:25 AM
10-01-2007 09:24 AM
10-02-2007 12:32 PM
RVallieu,
There is no change in functionality whatsoever. The only thing to consider is what works best for you. If you prefer the convenience of calling on an FPGA VI that may still have some tweaking done to it, you can do this easily and orderly within your project. If you have an existing FPGA bit file save somewhere that you don’t need or want to access within the project, you can do that too.
11-21-2008 01:46 PM
Would this also mean that
"Download VI to Flash Memory" does the exact same thing as "Download Bitfile to Flash" ?
11-22-2008 08:13 PM
dbtestcon wrote:
Would this also mean that
"Download VI to Flash Memory" does the exact same thing as "Download Bitfile to Flash" ?
Yes. The only that can be downloaded to the FPGA or flash memory is the bitstream, which is generated from the FPGA VI.
11-24-2008 10:32 AM
Cool. I was thinking it did, but the documentation is less than informative. ![]()
I'll be sending in a product suggestion that it be labled the same thing in the menus. If it is the same function, it should be labeled the same.....
06-15-2009 12:28 PM
There are two other differences that no one else seems to have discussed here.
When you have open VI reference selected and you open the FPGA file and then just so much as move a wire, it requires a recompile before anything works. This is extremely frustrating. Open by bitfile reference only looks at the bitfile generated by the last compile. It doesn't care whether or not you have compiled the latest version of the FPGA file. Also, you can load bitfiles on the fly which allows you to break down an FPGA file that may have been too big for one FPGA file into smaller files and then load them at runtime as needed, which is pretty cool.
The downfall to the bitfile reference way is that it will break every reference wire that goes to a subvi. Fixing it is such a huge pain in the butt that I have given up on trying to use subVI's when I need the bitfile method. It makes for a huge block diagram but it is a lot less of a pain then the crazy coding gymnastics you have to go through to fix the wire breaks. The fix actually requires you to use only one specific bitfile reference per subVI, which makes the subVI pretty useless anyways.
06-16-2009 07:52 AM
What I have done in the past is to create a Daemon and put the FPGA reference there. This keeps the FPGA Reference out of the main code. You do have to write one more peice of code but it can be worth it. Another thought is to create an FPGA Class and have a child for each different FPGA Reference. I have not tried this so I do NOT know if it will work.