LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 7 in real time host interfacing FPGA

Hi all,

 

I have a simple problem with my data logging. Error 7 is happening when I try to write my data to a text file. However this does not happens if I use the same code with simulated data outside of my FPGA project (inside a simple VI). So I suppose there is one trick when using FPGA reference which has to be compiled?

 

Thank you for your help,

 

Tamara

Download All
0 Kudos
Message 1 of 7
(2,522 Views)

Hi Tamara,

 

The trick in not FPGA specific and it is a simple one:

Dont hardcode the path of your File to write to your desktop!!! - it tends to cause issues when deploying any files esp as an FPGA doesn't have a desktop to my knowledge!

 

Error 7 = File not found

 

(Help > Explain Errors)

 

- It's also a good idea to give your file a filetype extension when you create it!!!

 

James

CLD; LabVIEW since 8.0, Currently have LabVIEW 2015 SP1, 2018SP1 & 2020 installed
0 Kudos
Message 2 of 7
(2,500 Views)

Thanks for your answer.

Unfortunately, this does not help me. I could give any path, it does not work. And this is not done on the FPGA (as you said there is not desktop on FPGA) but inside the host VI which is responsible for interfacing with it. In fact, the host VI gets data from the FPGA thank to FIFO DMA and then I want to save them into text files.

 

0 Kudos
Message 3 of 7
(2,488 Views)

But this code is in a Real Time application.  cRIO?

 

A Real Time application runs on a Real Time target.  It is its own machine.  I can't see directories on your desktop.  You need to save the file to something relative to the Real Time machine.  If you have a network shared folder on your desktop, you can point the RT system to that directory using the network path (\\DesktopName\SharedFolder).


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 7
(2,484 Views)

In fact I am using a sbRIO platform.

How do I create such RT applications-related folder? Like using one virtual folder of my FPGA project could work?

Thanks for your help!

0 Kudos
Message 5 of 7
(2,481 Views)

Hello Tamara, 

 

here is Dominik from the AE's in Munich. 

At first i have a question:

 

how does the error you get looks like? 

Perhaps you can take a screenshot of the error and send it with your next message. 

 

Best regards

Dominik

0 Kudos
Message 6 of 7
(2,453 Views)

Hi;

In fact I solved the problem 🙂

I was using a folder that could not be accessed from my application and instead I used the function Current VI Path and then Strip and Build path.

This page helped me: http://www.ni.com/tutorial/14669/en/

Thank you anyway for your help.

Tamara

 

0 Kudos
Message 7 of 7
(2,444 Views)