LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reusing compiled FPGA code among Multiple FPGA Targets

I have read the doc, Reusing FPGA VIs and FPGA Items among Multiple FPGA Targets , but for some reason now I have to compile 3 identical FPGAs (PXI-7833R) that are in 3 different slots on my RT chassis individually. This wasn't a problem before where one compile could be used/copied onto the other 2. Now I have to compile each one individually and they are all identicall in code and config inside project explorer Labview 8.2. Not sure what caused this change in behavior. Any insights to share?
0 Kudos
Message 1 of 2
(3,023 Views)
Hello,
 
It sounds like you want to reuse FPGA VIs without recompiling on other targets.  You can do so on equivalent targets by transfering your corresponding bitfile.  The idea is as follows.
 
Suppose you have target A and target B.  Target A has fpga_vi_A.vi, and host_vi_A.vi which has an Open FPGA VI Reference functionon it.  You want to use  fpga_vi_A.vi on Target B, but don't want to recompile  fpga_vi_A.vi on target B. 
 
First, you'll need a project on both target machines, because you have to add the actual FPGA target in both cases.  You will also want to have something like host_vi_A.vi on target B (either a copy or another VI you've created which has an Open FPGA VI Reference function to link to a bitfile) which communicates with your FPGA target.  From here on, let's suppose you've copied or created a host_vi_B.vi on your target B which contains an Open FPGA VI Reference function.
 
Second, for "reusing fpga_vi_A.vi" on target B, you need to copy the BITFILE found in your <project folder>\FPGA Bitfiles folder corresponding to your compiled fpga_vi_A.vi.  You can actually have fpga_vi_A.vi on target B, but you don't need it - you just need the bitfile.  With the bitfile on your new target's host machine, add this to your project.
 
Third, you'll need to link your host_vi_B.vi to that bitfile (which you've now copied over to your new target, and added/linked to your project).  By right clicking on the Open FPGA VI Reference functionon in your host_vi_B.vi, you can choose Select Bitfile... and choose your bitfile.
 
I hope this helps!
 
Thank you,
Best Regards,
 
JLS
Best,
JLS
Sixclear
0 Kudos
Message 2 of 2
(3,001 Views)