07-25-2017 03:16 PM
Hello, I have a simple LABVIEW code that reads some analog inputs from a myRIO and writes the data to an Excel file. I have two issues that arise from two scenarios:
1. When the VI is initialized from the myRIO project that it's added to, the analog inputs can be acquired. But the Write to measurements express VI will not create an Excel file as required.
2. When the VI is initialized as a standalone, not through the project explorer, the analog input express VI says that the target personality does not support the express VI. If I replace the inputs with a random number generator, it writes the excel file as required.
How do I read from the myRIO and write to an Excel file at the same time?
Solved! Go to Solution.
07-25-2017 08:59 PM
My recommendation is to use the Write To Delimited File to save your data to a tab delimited text file. That will store the file on the myRIO. You can then use FTP or WebDAV to copy the file to your computer.
The other option would be to make an application that runs under the "My Computer" in your project for saving the data. Use Network Streams to send the data from the myRIO to the PC.
07-27-2017 10:48 AM - edited 07-27-2017 10:54 AM
Thank you! I didn't know that the files were being saved in the myRIO itself. Why would it do this when I explicitly ask it to save in a specified path?
Aravindh.
EDIT: I noticed that the path address would change every time I entered the one I had wanted. Do you know how I could ask it to save onto the host computer?
07-27-2017 11:06 AM
@arajan wrote:
Thank you! I didn't know that the files were being saved in the myRIO itself. Why would it do this when I explicitly ask it to save in a specified path?
Aravindh.
EDIT: I noticed that the path address would change every time I entered the one I had wanted. Do you know how I could ask it to save onto the host computer?
Think of the myRIO as what it really is: another computer. Would you expect a computer you were remotely connected to save a file onto your host machine? Hint: they do not do that.
You may be able to create a shared drive on your desktop and have the myRIO write to that using the network path.
07-27-2017 11:21 AM - edited 07-27-2017 11:21 AM
I've never seen it as another computer. Then again, I haven't worked with FPGAs either. I've decided to save the files on a USB and transfer them later.
Thank you again!
For anyone else who may come across this issue and this particular thread, there's a little bit more info here:
07-27-2017 12:17 PM
@arajan wrote:
I've never seen it as another computer. Then again, I haven't worked with FPGAs either.
It is not the FPGA. It is the RT Linux that is running on the myRIO that is "another computer".