07-23-2013 09:50 AM - edited 07-23-2013 09:55 AM
I've been working on a cRIO based DAQ system, and suddenly one day all my file I/O either comes up with an error or runs fine but does not output a file. I've tried with read, write, and most of the built-in I/O functions.
I put together some dummy code, and stuck identical versions under either 'My Computer' or under the 'cRIO' in the project explorer. The former works, the latter doesn't.
Details below, thanks for any help!
Elizabeth
07-23-2013 09:55 AM - edited 07-23-2013 09:56 AM
Hi ecb,
that's the most common error of users new to cRIO...
You use the same path on the PC and on the cRIO to write a file. But:
- the cRIO has it's own file system and it's own directory structure. You cannot copy the path...
- the cRIO has NO access to the PC's harddrive. You/the cRIO CANNOT write a file on the PC's harddrive!
The cRIO is a "target" in the project explorer. Can you think of all the implications that come by using a different "target"?
07-23-2013 10:00 AM
To add to Gerd's comments. Think of the cRIO as a computer (since it really is one). Now my computer can't access your harddrive. So why should the cRIO be able to access another computer's harddrive? The cRIOs are their own entity. They were designed to run without being connected to another computer. It has been awhile since I played with one, but they do have their own directory structure. You should save to the FTP location so that you can get to the files on you computer using FTP.