From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
09-27-2017 04:03 AM
Hello guys,
I am looking for a high speed data logging application using CRIO 9035. I am using the FPGA VI to draw samples out of the analog input(AI0 in NI 9220) and store in a FIFO. Then, I use the Real time VI to invoke FPGA and create a tdms file. I have compiled the fpga vi using cloud servers. When I run the RT VI, I either get all the values to be zero or an error out saying error code -61003. When I run the FPGA vi in simulated input output mode, I see that the VI works and I can see through the probe that the analog input is being read. But, when I use RT VI, the FPGA code does not work or gives wrong answer. I am attaching the image files of the two VIs. I would be really grateful for some help.
09-27-2017 04:17 AM
For issues like this, it is helpful for us if you attach the actual code, including the project file. There are just too many factors hidden from the images.
But my shot in the dark says you have an issue with the Load FPGA.
09-29-2017 01:55 AM
Thanks for the reply, I am attaching the codes in this post. Even I felt the problem is with the load FPGA. In case, there are any files missing, just let me know. I would be really grateful for some help as it is bogging me down for some time.
09-29-2017 02:05 AM
Just to be on the safe side, I have attached the entire project folder as a zip file in this post.
Thanks in advance
09-29-2017 06:15 PM
Just looking at the Open FPGA Reference, a couple of things to try:
1. Turn OFF the "Dynamic mode". You are not doing anything making that necessary.
2. Open the bitfile. That will make sure you have the latest compiled version.
10-01-2017 05:08 AM
Tried these steps but it does not work. Can you guide me how to run both fpga vi and RT vi step by step. As I am new to labview, I could have missed something obvious! By the way, thanks for help in advance.
10-11-2017 02:33 AM
Hi shantanu1088, I just noticed a mistake in your code. In the filepath you have forward slashes / but what you actually want is backward slashes like this \.
So you path should read c\whateverfolder\logdata.tdms
10-12-2017 12:52 PM - edited 10-12-2017 01:01 PM
I tried running your code and it basically worked fine for me. I was able to make a TDMS file and transfer it using FTP
The most straightforward way to access the FPGA IO is to use the bitfile in the Configure Open FPGA VI dialog.
In your FPGA, if you set the loop timer to 1 us, the loop timer will do a 0us wait because your analog input takes longer than 1 us to acquire. You could remove the loop timer.
Your FIFO read architecture requires high CPU use. This article explains why.
Maybe add an indicator to the analog input and error terminal on the FPGA so you can see if that's all OK. It could just be a hardware error.