LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FPGA sub-vi in LabVIEW 8.2 Project used in multiple top level vi's

Hey All,  Thanks for all you help on my last issue.
 
How do I use an FPGA sub-vi in multiple applications without having all the files of the multiple applications in the FPGA sub-vi project?
 
This question has to do with re-using FPGA code in multiple projects.  There are 3, um, wait, 6, okay, MULTIPLE built applications that use the same FPGA module/sub-vi.  Using LabVIEW 8.2, the expanded memory and i/o lines for the FPGA must be assinged in the "Project" (file name.lvproj).  I created a sub-vi that interacts with the FPGA code.  The sub-vi and the FPGA vi's are all in a single project.  I tried to drag the sub-vi to a non-project vi, but got an error message that the new vi wasn't part of the project.
 
As of now the only solutions I can think of is to have one project with multiple top-level vi's inside of it or have multiple projects with duplicate FPGA sub-vi's in them.  Either way this is very annoying from a version control standpoint.
 
Thanks in advance for your help,
-Andrew
 
0 Kudos
Message 1 of 2
(4,013 Views)

Hi Andrew,

The best way to do this would be to have multiple projects calling the same subVI, as you stated in your post.  There does not seem to be a workaround for this.  The reason you are getting an error when dragging your subVI into a non-project VI is because the non-project VI is targeting your desktop instead of your hardware.  Hope this helps, thanks Andrew!

 

Meghan M.

0 Kudos
Message 2 of 2
(3,960 Views)