03-04-2014 06:32 PM
I plan to have two FPGA VIs. They are identical in terms of controls and indicators that are on their front panels, but the logic is different. I want to compile them into two seperate bitx file and the host VI will select the correct bitx file at run time. If I do that, do I just put two open FPGA reference nodes into two different cases of a case structure? Is that the correct way? Would there be a conflict in the FPGA referfernce, since I am opening two different bitx file? What is the proper way of doing this? Thanks!
Solved! Go to Solution.
03-04-2014 06:58 PM - edited 03-04-2014 07:00 PM
What version of LabVIEW are you using? If 2013, it got a lot simpler (Open Dynamic Bitfile Reference). You just need to supply a reference for the "Interface" of the FPGA. Since they are using the same, just create a constant from the Type input, right-click on the constant and select "Configure FPGA Reference...". A dialog will pop up, choose to import from a bit file. So you can now call any FPGA bit file dynamically (just supply the bit file location) as long as it has the same interface.
If you are using an older version of LabVIEW, well, the best method I have found is to open a reference inside of a case structure to the specific bitfile you want. Just pass the reference out of the case structure. Since they have the same interface, you shouldn't have any issues.
03-05-2014 09:58 AM
The new function in 2013 is exactly what I need. I will be using LabVIEW 2011 for that project though, so I will use a case structure then. Thanks!