05-11-2010 03:38 AM
Hi!
I would like to launch FPGA compilationS during the night. I tought about building a tool based on Project API which would launch the compile process (as the right-clic -> compile does). With this API I can find the VI but I haven't any method allowing to launch the compilation. One solution would be to execute the VI to launch the compilation process and then abort exec when the VI is running (it means that the compilation is succesful) (??) but it requires that the target is connected to the computer in order to deploy the bitfile.
Is there a to programmatically launch the compilation in the same way as the right-clic -> Compile does ?
Solved! Go to Solution.
05-12-2010 04:26 AM
Hello zyl7,
Thanks for posting on National Instruments.
I have attached a VI doing it. I have used the API for Compiling FPGA VIs and especially the VI niFpgaCompileVI.vi:
05-14-2010 09:19 AM - edited 05-14-2010 09:19 AM
05-17-2010 05:20 AM
Thanks Benjamin,
However, where did you find the FPGA API ? It looks like it's not visible in the LV Palette... Could you give the path where to get all necessary VIs ?
03-24-2011 11:52 AM
Hi Benjamin,
Following this post, we used the same niFPGACompileVi.vi for our overnight compiles under 2009. After the recent upgrade to 2010, now the vi is missing. Do you know where it went and how we can get the overnight compiles working again?
Thanks,
Ray
03-25-2011 07:54 AM
Hi Ray,
As Donovan explained in his post "the Compile subVI is not on the LabVIEW palette and may not work in previous or future versions of LabVIEW FPGA". Moreover, the compiler interface has changed between LabVIEW 2009 and LabVIEW 2010. From now you need to create Build Specification to be able to compile you FPGA VI.
I do'nt know if Donovan can help you to implement a VI to compile FPGA VI as it was done in LabVIEW 2009 with my VI.
03-25-2011 08:56 AM
Yes, I realized this from actual experience 🙂
So is there a way to trigger Build Specs to build through VIs? This would work for us too. Thanks.
Ray
03-25-2011 09:54 PM
I tried doing this with the LabVIEW 2010\vi.lib\AppBuilder\BuildTargetBuildSpecification.vi, but it doesn't seem to work for FPGA build specs. It returns no error, but it also does nothing. It does spend a second or two deciding to do nothing, though.
Any other ideas how to accomplish this?
06-29-2011 10:36 PM
Hi Ray,
I've thrown together something that works for me to build multiple FPGAs in multiple projects with multiple build specs for a single VI. In my case, I build the same VI for several targets and with different Conditional Disable Symbols, so I have to resave the top-level VI in the context of the target I'm about to build. It could be improved to find all the dependencies and save them, in case there were Conditional Disable Structures in subVIs as well as the top-level VI.
It's not pretty and it may get at references less directly than possible. Any clean-up suggestions on the VI Server code is welcome.
Hope this helps,
-Joe
11-08-2019 12:32 PM
It's been quite some time now... does LabVIEW 2018 or newer have an fully supported method for programmatically compiling VIs with LabVIEW FPGA?