LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read text file in myRIO

Solved!
Go to solution

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
(4,720 Views)

So is the folder and file on the myRIO? 

Message 2 of 10
(4,714 Views)

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


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 3 of 10
(4,702 Views)

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

0 Kudos
Message 4 of 10
(4,694 Views)

Thankyou Sir,I will work on it

0 Kudos
Message 5 of 10
(4,693 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
(4,679 Views)
Solution
Accepted by riah1920

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
(4,676 Views)

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

0 Kudos
Message 8 of 10
(4,651 Views)

glad i could help out


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
Message 9 of 10
(4,647 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
(4,640 Views)