09-13-2014 10:44 PM - edited 09-13-2014 10:48 PM
Greetings,
I'm working on a real-time measurement control project with cRIO.
I followed the example from the online course "Real-time 2" and used Network Streaming to pass commands.
Everything worked well and the program was doing what I expected when I was in debug mode.
However, after I complied the real-time application and deployed to the cRIO, the connection couldn't be setup between NS writer(UI side) and NS reader(cRIO side).
I thought it was caused by the complexity of my program. Then I created a simplest NS program only have NS writer and NS reader.
The same thing happened. It worked in debug mode and stopped working after deployment.
BTW, cRIO is using a static IP address.
Did I miss anything else?
Thank you in advance.
Best Regards,
Yan
09-14-2014 03:43 AM
09-14-2014 03:56 PM
Please check out the attachment.
Thanks.
Yan
09-15-2014 03:21 AM
09-15-2014 09:21 AM
Jens,
Thank you.
Acutally that was my mistake in the simpler version.
The other version was programmed correctly for the issue you pointed out.
I think it is someting else causing problem.
In the completed version, I had a NS writer on the cRIO side to write error messages and the message will be read out on UI side.
It's really confusing why it works well under debugging mode but not after deployment.
I had it attached in case you want to take a look.
Thanks a lot.
Regards,
Yan
09-15-2014 03:43 PM - edited 09-15-2014 03:45 PM
I found the problem.
The share variables were pointed to the address composed of cRIO name instead of IP address.
It wasn't because of Network Streaming issue.
I was too lazy to programmably access shared variables.