02-01-2018 05:23 AM
I did reading a text file in LabVIEW.But when i did in LabVIEW MyRIO ,it shows error7.Please help me with this
Solved! Go to Solution.
02-01-2018 05:34 AM
So is the folder and file on the myRIO?
02-01-2018 06:18 AM
Error code 7 is "File Not Found". So use WebDAV or FTP to put your text file where you expect it to be.
02-01-2018 07:32 AM
.Yes,I had saved both the file and the text document in the folder containing LabVIEW
02-01-2018 07:34 AM
Thankyou Sir,I will work on it
02-01-2018 09:39 AM
@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.
02-01-2018 09:44 AM - edited 02-01-2018 09:48 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
02-02-2018 06:14 AM
Thankyou so much Sir,I was able to get successful results
02-02-2018 06:54 AM
glad i could help out
02-02-2018 08:44 AM
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