04-20-2011 12:03 PM
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?
04-20-2011 12:13 PM
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?
04-20-2011 01:41 PM
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.
04-20-2011 04:04 PM
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.