Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

NI myRIO Executable running but behaving unexpectedly

Solved!
Go to solution

Hi,

      I recently using myRIO-1900 to control a torque device and the device designed to be able to be controlled by serial port. I use the portA's serial port and the programe runs well in the labview 2014 development environment , the serial command from the PC can be recieved and sent correctly. But when I set the programme as executable and set the executable .rtexe run as setup, myRIO could send the data out correctly, the it recieves the serial command, but it won't act as the command requires, it seems the command is not excute. The inner control logic is that myRIO recieve the command and it stores in an array, the array controls those controls and indicators, such as the start button, stop button.  Everything is fine in labview but  executable running with behaving unexpectedly.Could you anyone nicely give some advice or solution? Thanks a lot!

 

Download All
0 Kudos
Message 1 of 2
(2,328 Views)
Solution
Accepted by topic author tigerdawn

This issue has been solved. As a summary, the main problem is that I referenced some property node of  controls or indicators on the panel.  This may cause unexpected error in RT application. For RT application, the panel is not exist, so the reference may come into error. I changed all the value property nodes into local variables.

Some answers may helpful in <Startup Executable (.exe) Does Not Launch on Real-Time (RT) Target at Controller Reset, Updated Dec 4, 2017>
1." There may be situations that the .exe is actually running, but due to one or more errors, the program is not behaving as expected. "

2." Property nodes that reference front panel objects and properties (such as window position), if used, will prevent a realtime application from executing. This is because a VI's front panel is removed when a real-time executable is compiled. You can either remove all property nodes that reference front panel objects or include the front panel in the build by selecting to Enable debugging within the Advanced tab of the build specification. This will increase system resource utilization on your real-time controller due to the additional processing required to include and run the application's front panel.  "

   Before building RT application and setup as start, running the VI Analyzer may be usefull.

0 Kudos
Message 2 of 2
(2,277 Views)