02-13-2014 02:02 PM
The following code shown below is for a humidity sensor attached to a myrio.
I was wondering how could I save this data onboard the myrio, as a text document, saving the y axis with a time stamp. I know I can invoke a node from the front panel of the chart, using a "to excel", but that alone will not let me control the file directory of the path.
As you can seen i've done some experimenting with the file path of the rio, but still don't have it quite down. If anyone can help me out thanks!
Jakes.
02-13-2014 07:04 PM - edited 02-13-2014 07:04 PM
HI Jakes,
I believe myRIO should works the same as typical CompactRIO when comes to data logging in the real-time target.
Could you try using the c:\<filename>.txt as the file path and see if there's any file in the myRIO using the address (ftp://<ip address>).
Ee Lim
02-14-2014 01:10 AM
Yes that is correct, but how can I turn this chart data into a text file?
jakes
02-14-2014 02:06 AM - edited 02-14-2014 02:18 AM
Hi Jakes,
You don't need to write to text file using the chart. You can write to text file in myRIO similar to how you normally perform write a text file operation to the computer.
You need to convert the result data (from the output terminal of the Multiple function) to string format before writing to the text file.
https://decibel.ni.com/content/docs/DOC-3052
If you want to include the time stamp into the text file, you can use Get Date/Time in Seconds function and convert to string before concatenate with the data (in string).
I don't think that your chart even has any time stamp data on the x-axis, although the x-axis is labelled as time.
Ee Lim
02-15-2014 01:59 AM
Sorry it's samples. I am still getting use to labview/myrio.
If I am logging data to a chart, does the chart automatically save onboard the rio(my project will not be connected to a home computer). I am trying to figure out the best way to save the data when not connected to a computer.
I am unsure of the file path when not connected as a data logging device.
Sorry if I seem confusing still getting use to the rio and labview.
Jakes
02-17-2014 04:01 PM
Hi Jakes,
I know that you're waiting on ongeelim to respond back but I also wanted to make you aware that you may have more luck finding an answer quicker if you direct your question to the correct forum path -->Academic Hardware Products (ELVIS, myDAQ, myRIO).
If you're logging data to a chart in LabVIEW on your computer or on myRIO, nothing is saved to a file. You must save to a file separately the same way that ongeelim described in the previous post.
09-22-2016 12:46 AM
Hello,
I have problem to save analog data by using NI myRIO. I can't save the analog data obtained. Anyone can help me to solve this problem because I'm still new user NI myRIO.
Thanks,
nuradebah
09-22-2016 01:30 AM - edited 09-22-2016 01:31 AM
If you have code that does not work as expected, attach the VI so we can see what's wrong.
Do you want to save it on the myRIO or on the PC?
09-22-2016 02:06 AM
I want save the data on my pc.
09-22-2016 02:12 AM
I want save the data on my pc. But, the data does not save when I run the program. You can refer the VI program below. Is it because the file path name for myrio is not same as the file path name PC?