04-02-2012 10:09 AM
I have a problem about building an exe (I think). I have 2 VIs, first one is under my computer which is named "main" and the other is under cRIO (9073) which is
named "cRIO (FRM)".
"main" VI contains only x_axis coordinate that we want. And it sends that coordinate into "cRIO (FRM)" VI and from there to drivers.
Other necessary informations are in the Block Diagrams.
Up to this point everything works well (communication, movement..) but when that i build an application under PC and cRIO, something is happened and communication is broken. I mean apparently there is a communication between drivers and cRIO but movement is not happen.
My question is that what is the reason of this?
04-02-2012 10:44 PM
Are the shared variable libraries being deployed when you are running them as an .exe? I don't see anything in your code that deploys the libraries.
04-03-2012 01:14 AM
Hi Ravens Fan,
When building an exe under the my computer, there is a choice about "Shared Variable Deployment". Is this the way mentioned by you?
04-03-2012 08:47 AM
I know for a system I have using a compact Fieldpoint, I did a programmatic deployment in my application.
But that dialog you found appears to be the way you should deploy the shared variables so definitely try that.
04-03-2012 01:49 PM
When you build your executable, you need to be sure to include your variable library in your source files. Then it will show up in that "Shared Variable Deployment" list.
Also, I assume you have separate executables for the real-time side and the host side? Are you going through the process of deploying a startup executable to your real-time target?
Once you have that working, you should be able to see your variables show up in the NI Distributed Systems Manager (as soon as you've deployed the executable on the real-time target).
04-26-2012 08:10 AM
Thanks for your replies! I've solved my problem:
Thank you again.