LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Path building error in myRio VI

Solved!
Go to solution

Hello 

 

I am having a problem when I am trying to get the variables from text file to the (open config data.vi) in myRio VI.

 

The text file is saved on Disk C and I am copying the exact path and put it in the path section of the "Build path" and the other input of the build path is the name of the text file. 

 

When running the code I am getting error 7. 

 

Might that be because I am working with myRio vi? So the path should be from somewhere different than the host (pc)?

 

I hope if someone can help me with that.

Thanks 😊

 

0 Kudos
Message 1 of 5
(1,737 Views)

The myRIO is a separate target (in other words, a different computer) than your PC and runs NI Linux RT. Hence, it looks for files in its local directory. You can find more information on how to use paths with your device here: Working with File Paths on Real-Time Targets 

 

You can also read more about the RIO architecture here: The LabVIEW RIO Architecture: A Foundation for Innovation, and how to transfer files to the target here: Tools Available for File Transfer/Access on NI Linux Real-Time Targets 

 

All the best,

0 Kudos
Message 2 of 5
(1,715 Views)

As Oscar pointed out, the myRIO runs NI Linux RT, a very different OS from Windows 10.  It is designed to not have a "Front Panel" with interaction with the User.  Among other things, it doesn't have the Error Structure, so helpful for interacting with Front Panel Controls.  [Note -- an RT OS shouldn't have conventional Controls and Indicators except for testing and debugging purposes].  Typically, one develops a LabVIEW RT Project that has a Host section (hosted on "My Computer", namely your Windows PC) and a Remote Target, such as your myRIO, with communication between them via TCP/IP, either over the  USB Connection to the myRIO or through WiFi.  There are several ways to move data between Host and Target -- in many RT Applications, the File I/O takes place on the Host, which generally has much more storage capability than the Target.

 

Bob Schor

Message 3 of 5
(1,688 Views)

Hello Oscar 

 

Thanks for your answer. 

Actually, my problem is where I can get the Linux path. so in this case I should save my text file (which includes my variables) somewhere, not in Disk C but somewhere that is reachable from the external device (myRIO in this case). so where/how can I find this path?

The attached picture shows the problem. 

 

Thanks 

Ali

 

0 Kudos
Message 4 of 5
(1,662 Views)
Solution
Accepted by topic author ali_nad

Use WebDAV to create a mapped drive to your myRIO.  You can then write to that mapped 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 5 of 5
(1,654 Views)