Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Write to file in myRio

Hi,,

 

my code connot write data from myrio to my PC, I need you help to fix it. Plz,,

 

This is the code Capture_FullSystem.JPG

0 Kudos
Message 1 of 12
(7,228 Views)

The myRIO doesn't actually run on your computer.  It has its own OS and file system.  Would you expect your friend's computer to write to your computer's harddrive?  Well, it can if you use a shared folder and address the folder with the network name.  So you need to supply a network address for your shared folder on your system that the myRIO can then write to.


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
Message 2 of 12
(7,221 Views)

Thank you for your reply and help

 

actually , I just need write  data on file  when I run the system.

 

 

0 Kudos
Message 3 of 12
(7,219 Views)

wael121 wrote:

actually , I just need write  data on file  when I run the system.


I don't understand what you mean by this.


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 12
(7,216 Views)
I mean my code cannot wirte data to file
Or the wirte to file box not working with myrio

Thanks
0 Kudos
Message 5 of 12
(7,209 Views)
Write*
0 Kudos
Message 6 of 12
(7,208 Views)

Again, the myRIO is its own little computer.  Anything that you run will be ON THE MYRIO.  The myRIO doesn't have a GUI.  So you need to supply the file path manually and you need to give it a network address if you want it writing to your harddrive.  Otherwise it tries to write on its own flash drive.


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 7 of 12
(7,206 Views)

I see.
So, could you give me an example code for write data on myrio drive.plz
or any helpfull link.

Thanks alot

0 Kudos
Message 8 of 12
(7,203 Views)

Here's a couple of articles to read:

Under the Hood of NI Linux Real-Time

Working with File Paths on Real-Time Targets


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 9 of 12
(7,195 Views)
Thanks
0 Kudos
Message 10 of 12
(7,189 Views)