05-15-2009 04:38 AM
HI
I have on host vi which has two subvi one containing control logic (test.vi) and other vi for I/O debugging(debug.vi) .If I make two different FPGA VIs named as testfpga.vi and debugfpga.vi. If test.vi is running on host pc i want to load testfpga.vi and when debug.vi is running then debugfpga.vi Is it possible?
05-15-2009 07:28 AM
pbpatel,
You can use the "Open FPGA VI Reference.vi" to dynamicly load bitfiles in your FPGA target at runtime. Use the "Close FPGA VI Reference.vi" if you want to open a different reference (ie, switch between your testfpga.vi and debugfpga.vi).
-cb
05-15-2009 10:05 PM
Thanking you for your reply,
But how can I download multiple bitfiles in cRIO FPGA. I mean "Open FPGA VI Reference.vi" will load bitfile from Host computer to cRIO or it will be on cRIO memory. If it is in cRIO memory then where can i put this bitfiles in cRIO.
05-24-2016 08:22 AM
Did you ever figure this out? We have a similar need. We want to dynamically load the bitfile at runtime from the RT not a host.
05-24-2016 08:43 AM
Just put the bitfiles somewhere on your cRIO that you can easily get to and then dynamically choose which bit file to load.
05-24-2016 09:24 AM
The function crossrulz is talking about is the Open Dynamic Bitfile Reference
http://zone.ni.com/reference/en-XX/help/371599L-01/lvfpgahost/open_dyn_bitfile_reference/
Because I haven't seen anyone talking about this, I want to mention that you cannot have two bitfiles running on the FPGA at the same time. You can switch between bitfiles at run time but it will take a few seconds before you can actually communicate to the FPGA. If you are going to do this, make sure you are switching bitfiles during the system's downtime or between tests and not when you have to be actively controlling outputs.