LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

read text file in myRIO

Solved!
Go to solution
Highlighted

I did reading a text file in LabVIEW.But when i did in LabVIEW MyRIO ,it shows error7.Please help me with this

0 Kudos
Message 1 of 10
(815 Views)

So is the folder and file on the myRIO? 

Message 2 of 10
(809 Views)

Error code 7 is "File Not Found".  So use WebDAV or FTP to put  your text file where you expect it to be.


There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Message 3 of 10
(797 Views)

.Yes,I had saved both the file and the text document in the folder containing LabVIEW

0 Kudos
Message 4 of 10
(789 Views)

Thankyou Sir,I will work on it

0 Kudos
Message 5 of 10
(788 Views)

@riah1920 wrote:

.Yes,I had saved both the file and the text document in the folder containing LabVIEW


Folder containing LabVIEW? 

 

Is that folder on the myRIO? 

I don't know what LabVIEW folder you are talking about.

Message 6 of 10
(774 Views)
Solution
Accepted by topic author riah1920
02-02-2018 04:12 AM

in case this is not clear yet, your myRIO-VI is not running on your development machine,

so any file references must be local to the myRIO file system structure.

also you have to make sure you are in a read/writeable directory for the 'lvuser' ( i am guessing that myRIO and cRIO run the same linux), but that should be if you move your files via webdav/ftp onto the myRIO.

i did use the "/c/" path and created a subdirectory there, for file writes from my VI.

 

also, move the file open and close outside the loop, unless you really need that, like changing the file or something while the loop is running.

 

 

* http://zone.ni.com/reference/en-XX/help/371361N-01/lverror/misc_lv_error_codes/

* http://zone.ni.com/reference/en-XX/help/370622N-01/TOC38.htm

 

regards


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
Message 7 of 10
(771 Views)

Thankyou so much Sir,I was able to get successful results

0 Kudos
Message 8 of 10
(746 Views)

glad i could help out


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
Message 9 of 10
(742 Views)

if you have an active subscription, i recommend you to take the two real-time courses.

http://sine.ni.com/myni/self-paced-training/app/main.xhtml


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
Message 10 of 10
(735 Views)