LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I debug at FPGA side?

 

Hi,

 

I am using FIFO to acquire data from a TC module.

 

I debugged and fixed some problem running the FPGA code in dev computer. Now I can get the data from all points in my program. But When I run the program in host side, I am  not getting any data in host side.

 

Can anybody tell me if there is any way to debug the FPGA code in FPGA itself, using tool  such as probe tool?

 

 

0 Kudos
Message 1 of 4
(2,321 Views)

One additional point, I forget to mention.

 

Say I am getting the data from FPGA VI.

 

But when I run the prgram at host side and debug, I find that no data even from open FPGA VI reference itself.

 

Can anybody recommend about how to deal with this?

0 Kudos
Message 2 of 4
(2,318 Views)

You can set the FPGA code to run on the development computer with simulated IO (or real IO, for some configurations).  In the project explorer there's an option for this when you right-click on the target.  While the FPGA code obviously does not run at full speed this way, it does let you debug your code using the standard LabVIEW tools.

0 Kudos
Message 3 of 4
(2,308 Views)

To debug on the real FPGA, you can add a few indicators on important lines then use the Read/Write Control in your host vi to read them.  Front Panel objects take a big chunk of your FPGA resources and you'll have to recompile every time you want to change them, but you'll be able to see real data.  I've used a simple loop counter and timer that had nothing to do with my program just to check it was spinning at the rate I wanted.


--Using LV8.2, 8.6, 2009, 2012--
0 Kudos
Message 4 of 4
(2,299 Views)