08-09-2011 04:02 AM
G`day guys,
I`m having a bit of trouble with the Open FPGA VI Reference Function.
The VI that I wish to open (named Master) has been compiled and runs fine. Now I open up a new VI in the same project, under the same FPGA target. First of all I can`t find the function from my menu, so I ctrl+drag from another piece of code that contains the Open FPGA VI Reference Function.
All I`m doing for now is wiring the FPGA VI Reference Out and error out to a Close FPGA VI Reference Function. (simplest code I could think of to test the function).
Also, I`ve wired a constant input to 'resource name' in the Open FPGA VI Reference Function. Then I dragged the Master VI icon from the project explorer into the Open FPGA VI Reference Function and it seems to recognise the host. But the run icon is still broken and when I press compile, I get 5 errors, all of the form "not supported in current target". (for Wire, Open..., Close...., Wire, Diagram Constant).
I`ve attached a jpg of this super basic code...
Does anyone have any ideas on where I`ve gone wrong? Could it be possible that I don`t have the right FPGA module installed? How would I check this? It says on the help site that even without the FPGA module I should be able to reference the bitfile, which I`ve tried also...
Thanks in advance!
p.s. I`m running Labview 2010 service pack 1 and a FPGA PXI-7853R card.
08-09-2011 04:31 AM
Hello,
You can't Open FPGA VI Reference in the FPGA itself - you need another VI under My Computer that open FPGA VI in the fpga target. To see the structure of a project I recommend you to take a look at "Analog Input - R series" example, which you can find in the example finder.
But if you want to use one FPGA VI as a subVI in another FPGA, then you can do this normally as in normal VIs - with just a drag and drop operation.
If you have any more question regarding this problem, feel free to ask.
Best Regards,
Gregor Cerne
08-09-2011 08:11 AM
G'day Gregor,
That totally makes sense, thanks for explaining that to me. My code now works a treat 🙂