LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cRIO File I/O not executing

Hello,

 

I am using a cRIO 9030 and wanting to use it to output data in real-time. I have mostly been running my RTMain from the PC to debug and develop the LabVIEW project. I am at the point where I want the cRIO to independently run the project and not need the PC. I properly built the project and deployed the startup and rtexe files (so I thought).

 

Through some debugging I have found the cRIO is not accessing text files like it should when run by itself. However, when running the RTMain from the PC, the file functions are executed properly. It looks like all file vis are looking at the correct files paths: /home/lvuser/natinst/bin, where the text files and startup and rtexe files are located.

 

The cRIO is run by Linux and I have read that Linux sometimes denies access to certain folders. Could this be the case? If so, how do I give the rtexe file permission to access files?

0 Kudos
Message 1 of 4
(1,399 Views)

Hi Elvis,

 

there should be a data folder next to your rtexe: I never had any problems when my own data files were located inside that folder...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(1,373 Views)

GerdW,

 

The cRIO directory I am using is /home/lvuser/natinst/bin. I have my rtexe and text files in there as well as two additional folders. One is one that I created and using and another called 'project' that I do not remember creating (this project folder that an errors folder which then has folders with different language names on them). 

Did you have you files in that project folder?

0 Kudos
Message 3 of 4
(1,366 Views)

Hi elvis,

 

Are you sure that the path being searched by the RTEXE is the same as you expect?

In particular, if you use Application Directory, Current VI's Path, or similar, it might change - I don't recall exactly which change in which ways right now, but you could either a) test or b) check the documentation with care (I'd guess a) is faster/more confidence inspiring if the hardware is easily available).

 

You might have already tried this, but adding Path Indicators and connecting to the remote VI to debug (via Operate > Debug Application or Shared Library and then entering the IP address of the cRIO, with debugging enabled) could be useful.

Alternatively you can try writing some text file with the path values (but then you have to hunt down the text file, which if the problem is related to path handling, could be an extra annoyance to deal with).

 

The opposite side of the problem is potentially deployment of the text files you're reading - you can check these most easily with the Silverlight-based web browser (which probably means using I.E only) and browsing to the cRIO IP address, then using the file browser after logging in.

Alternatively you can check using the command line, e.g. via SSH onto the cRIO if that is enabled (via MAX).


GCentral
0 Kudos
Message 4 of 4
(1,330 Views)