NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
drycsr
Posts: 52
0 Kudos

building exe problem about communication between compactRIO and MOVIDRIVE B

Hello all,
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?

Best Regards!

Thanks!
~drycsr~
Knight of NI
RavensFan
Posts: 13,418
0 Kudos

Re: building exe problem about communication between compactRIO and MOVIDRIVE B

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.

Member
drycsr
Posts: 52
0 Kudos

Re: building exe problem about communication between compactRIO and MOVIDRIVE B

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?

Thanks!
~drycsr~
Knight of NI
RavensFan
Posts: 13,418
0 Kudos

Re: building exe problem about communication between compactRIO and MOVIDRIVE B

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.

Member
ColdenR
Posts: 153
0 Kudos

Re: building exe problem about communication between compactRIO and MOVIDRIVE B

Hello drycsr,

 

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?

http://digital.ni.com/public.nsf/allkb/B37FA04A1CB84B6C862571A30060EF03

 

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).

Colden Rouleau

Product Support Engineer | NI-RIO R&D | National Instruments
Member
drycsr
Posts: 52
0 Kudos

Re: building exe problem about communication between compactRIO and MOVIDRIVE B

Hello all,

 

Thanks for your replies! I've solved my problem:

 

http://forums.ni.com/t5/LabVIEW/modbus-ethernet-example/m-p/849140#M385109

 

Thank you again.

Thanks!
~drycsr~
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page