03-22-2021 07:00 PM
Dear NI geniuses,
I have a probably stupid question.
I have worked for months on a application that includes VIs that runs on a cRIO on one side, and another part that runs on a host PC. I use network streams to communicate beween the two.
I have created a source distribution that is deployed on my real-time target, and I can start it from my host VI on the PC using the VI server. I even created an application with the PC side of my application, and it works fine, as long as the cRIO was previously connected in a LabVIEW project.
But it seems that if the cRIO has not been connected in a project, it won't communicate with the host when I launch my application (without having rebooted the cRIO in between). I would like to transfer my application to a computer without the labview development, but I'm not sure how things are going to go with this connection to the cRIO.
Do I have to programmatically connect to the cRIO before opening the application reference via VI Server or should the 'Open application reference' VI also do the connection ? It is no clear at all to me...
Thanks for your help
03-22-2021 08:44 PM
You need to build a RealTime application and deploy it to the cRIO and make sure it is deployed to run on boot.
03-23-2021 05:06 PM
Thanks for your reply. So you mean that it is not possible to use just a host PC as an application and a source distribution ?
03-23-2021 06:00 PM
The cRIO is its own computer. You have to treat it as a different computer. You deploy an application to the cRIO and then it can run that application when it is turned on. You can then use TCP/IP to communicate between the application you have running on the cRIO and the application you have running on your PC.