LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to run multiple VI or bitfile on cRIO FPGA

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?

0 Kudos
Message 1 of 6
(4,909 Views)

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

Message 2 of 6
(4,895 Views)

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.

0 Kudos
Message 3 of 6
(4,879 Views)

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.

0 Kudos
Message 4 of 6
(4,059 Views)

Just put the bitfiles somewhere on your cRIO that you can easily get to and then dynamically choose which bit file to load.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 6
(4,055 Views)

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.

Matt J | National Instruments | CLA
0 Kudos
Message 6 of 6
(4,048 Views)