LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Odd behaviour with fpga code...f

Hi there!

I got some fpga code to work and then i call it from a labview vi. All of a sudden, i end up with an error when i try to run my vi that uses the fpga code. I looked at the fpga code and it shows the run arrow as greyed out to indicate an error. I will post the error and block diagram below... I hope someone will be able to advise me on how to correct it.

I could solve the problem by rewriting the piece of code from scratch which i already had done before, but it takes time and it seems it might happen again sometime in the future, who knows!

Thanks.
Regards,



Download All
0 Kudos
Message 1 of 5
(4,545 Views)

It appears that you are trying to run the FPGA code outside of the project.  The FPGA code needs to be associated with a project file which has all of the proper I/O associations. 

Could you also post a screenshot of the vi that you're running which is calling the FPGA code and one of the project file? 

0 Kudos
Message 2 of 5
(4,529 Views)
Hey again!

Thanks for your response... I looked at the project section and deleted the fpgacode's file reference from lower down and tried to put it in the top section, but it complains and says that a file like that already exists in the project, however i cannot see it. Be that as it may, i open the fpgacode vi again and surprised the arrow is whole and white. So now recompiling the code and hopefully should run ok.

Here is the screenshot of my project file.
0 Kudos
Message 3 of 5
(4,526 Views)
You said that you were trying to call the FPGA code from another vi.  How were you doing this?  Were you properly opening the reference to the FPGA vi?  I suspect that the problem is in the other code, not the FPGA code, and you probably don't need to recompile the FPGA code.
0 Kudos
Message 4 of 5
(4,517 Views)

matrix

 

I had the same problem until I linked the Open FPGA Reference.vi to the bitfile instead of the FPGA.vi.  Once I did that I was able to run the FPGA code outside of my FPGA.lvproj.Smiley Very Happy.  the bit file will have a name sililar to the lvproj & FPGA.vi name.  For instance - here is my bitfile FGA_PXI.lvproj_FPGA Target_PXI Cntrl _Comm.vi.lvbit  which is associate with project FGA_PXI.lvproj & FPGA PXI Cntrl _Comm.vi. The bitfile should be in the lvproj.  I am using LabVIEW 8.2 but there is a select bitfile in LabVIEW 7.1 also. 

 

MDDAVE

Visualize the Solution

CLA

LabVIEW, LabVIEW FPGA
0 Kudos
Message 5 of 5
(4,495 Views)