05-09-2014 05:18 AM
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
05-09-2014 06:54 AM - edited 05-09-2014 06:56 AM
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
05-09-2014 10:28 AM
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.
05-09-2014 10:44 AM
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).
05-09-2014 10:53 AM
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!
05-12-2014 05:41 AM
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
05-12-2014
07:07 AM
- last edited on
01-08-2025
02:26 PM
by
Content Cleaner
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: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YH93CAG&l=en-US
Thank you anyway for your help.
Tamara