05-23-2021 05:04 PM
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 😊
Solved! Go to Solution.
05-23-2021 06:29 PM
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,
05-23-2021 10:22 PM
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
05-24-2021 11:50 AM
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
05-24-2021 12:15 PM
Use WebDAV to create a mapped drive to your myRIO. You can then write to that mapped drive.