From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-12-2015 08:06 AM
Hi everyone
I've currently tried to generate a stand-alone application of one of my RT-VI's. I generated it as a start-up program under the cRIO Build Specs. Now I cannot stop the running program on the cRIO nor can I connect to the device.
What can I do?
cheers
06-12-2015 08:36 AM
Your RT VI is probably consuming all of the available CPU resource on the cRIO which will make it unresponsive. You will need to either try to restart it from MAX with the no-startup-VI option ticked or restart it in safe mode (either from the physical DIP switches / reset button) or from MAX.
06-12-2015 08:42 AM
thanks a lot
I'll try it soon
06-15-2015 01:39 AM
Good morning
All my attempts to connect to the cRIO failed. Just in safe mode a restart in MAX was possible and a reboot of the device didn't change the situation. Now I descided to format the targed system. Hope that this will enable me to connect to the device again.
How can I set up a proper stand-alone VI or an executable program that can be used by any other user to operate the cRIO - to use the Software I created? I was following the instructions of NI advices but I couldn't operate the cRIO from my front panel. It just ended up in a "self-running" program on the targed with no access to it anymore...
thanks a lot
cheers
06-15-2015 03:19 AM
Remember at a cRIO program is a free runing program that has no front panel.
A cRIO is a stand-alone computer, that should have its own program.
If you need to talk and control the cRIO you should make a host program that can communicate to the cRIO program.
There are multiple options to make communication between a host program runing on a PC and the cRIO.
What have you done so far?
06-15-2015 03:58 AM
I've tried to set up a "Invoke Application property RemotePanel:Open Connection To Server" but I get the error message Error 1346: Labview. Server does not support remote panels"... although I searched for solutions in the internet and I've found the following:
https://lavag.org/topic/6351-crio-wremote-panel/
I also tried to set up the Real-Time CompactRIO Properties for the web server, user access VI server etc. but I am not sure what I've to enter as Debug HTTP Port (Web Service Local Debugging), HTTP port (Remote Panel Server)...I enabled the check marks for Remote Panel Server and Remote front panel...
I also entered the VI-Nabe of my running VI in the "Visible VIs"-field but I didn't know what to enter in the "Browser Access"-List...
The VI Server Protocols are disables
User Access: I entered the IP-Adress of the target in the Target Access List
Since I am not experienced at all in this I have to ask "stupid" questions
thanks a lot
06-15-2015 04:13 AM
As others have said, you need to implement some sort of communication method between the RT executable running on the cRIO and Windows over the network. The fact that you can 'run' an RT VI and have it's front panel displayed and updating is kind of confusing because once you build it into an RT executable it essentially becomes a 'headless' application with no UI. You need to write a VI that runs on Windows and communicates with the cRIO over the network (e.g. using network shared variables, network streams, TCP/IP etc.).
There are examples built into LabVIEW and there is also the 'cRIO Developer's Guide' available here: http://www.ni.com/pdf/products/us/fullcriodevguide.pdf
You might be able to connect to the RT VI while it's running using remote front panels if it enabled or using 'debug application or shared library' if the VI is configured correctly.
06-16-2015 03:51 AM
Hi Sciu,
please also take a look at the LabVIEW Example Projects.
Developer Walkthrough of the RIO Sample Projects - National Instruments
http://www.ni.com/video/2725/en/
Best regards,
Peter
06-16-2015 07:41 AM
Hi everyone
thanks for all the suggestions and advices 🙂
have a nice day