Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Write to file in myRio

Highlighted

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
(5,137 Views)
Highlighted

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

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
(5,128 Views)
Highlighted

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
0 Kudos
Message 4 of 12
(5,125 Views)
Highlighted
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
(5,118 Views)
Highlighted
Write*
0 Kudos
Message 6 of 12
(5,117 Views)
Highlighted

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
0 Kudos
Message 7 of 12
(5,115 Views)
Highlighted

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
(5,112 Views)
Highlighted

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
0 Kudos
Message 9 of 12
(5,104 Views)
Highlighted
Thanks
0 Kudos
Message 10 of 12
(5,098 Views)