02-14-2012 08:50 AM
The VI as shown in the attachment works properly on my cRIO9073 system when running from the project explorer and pressing the arrow button. But unfortunately it doesn't work anymore when it's deployed (after making a build). This VI is part of a large project, but I was able to trace back the issue to this VI, where something goes wrong with reading the text file. I use now the false case (not shown), where I temporary added the content of the txt file into a string constant. Of course, this is a good workaround, but not flexible.
Does anyone has an idea what goes wrong here?
I'm using NI-RIO 3.1.0 - January 2009 version as software version on the cRIO system.
Solved! Go to Solution.
02-14-2012 01:08 PM
I think the problem is with the file location shortcut you're using.
The compiled RT program won't be in the same location as the "VI" was, so the file won't be where it looks for it.
Other folk may have a better suggestion, but I always use absolute links on RT Hardware. I usually put configuration and other files directly in the c:\ni-rt\ directory.
02-15-2012 01:41 AM
For this VI I had first an absolute path, but as this was not recommended I used the VI path item. Unfortunately, with both situations it doesn't work.
02-15-2012 04:03 AM
Try to get more detailed error information by debugging the RT executable. To do this check EnableDebugging in the Advanced section of the RT app build specification and establish the debug connection to the cRIO by providing the IP information in the Debug Application window (LV main menu - > Operate)
Hope it helps
Christian
02-16-2012 03:21 AM
I tried to connect with the debug application window, but unfortunately I do get the following error message:
--------------------------------------------------------------------------------------------------------------
Compiler error. Report this problem to National Instruments Tech Support
copy cvt bool, csrc=0x0.
---------------------------------------------------------------------------------------------------------------
After this message the debugger failed to connect
02-27-2012 04:33 AM
Hello,
I don't know that you still have that issue but I think that you cannot use that Property node (Axis type) in your cRIO. Please remove that and try it again to see what would be the influence.
I will hear it from you.
regards,
Hossein
03-07-2012 01:41 AM
@Hossein128, thanks for your response. I removed the property node and then it works OK! I was a bit surprised about this, but nevertheless it solved the issue.
03-07-2012 02:07 AM
Hi,
That is good to hear. It is because this property doesn't supported in RT. You can find more info in the help file of this function.
Good Luck,
Hossein
03-07-2012 07:11 AM
Just remember that, when your are working with Real-Time, a lot of the properties and operations on front panel controls and indicators are not available.
General go with the approach that a Real time application/vi don't have a front panel.