FIRST Robotics Competition Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview programming help - Deploy mode not working

Hi there,

              I have a programming doubt.I deployed the simple motor program VI and it worked perfect in run or Live debugging mode. If I  try to deploy it from the project explorer window it deploys the  program successfully but I'm not getting the motor to run.I tried changing the value of the constant in VI to 0.1 but still it doesn't turn the motor anyways.Can you help me out with this?

Thanks and regards,

Murthy

0 Kudos
Message 1 of 5
(5,285 Views)

Murphy,

Can you describe step by step what you are doing during the deployment process? Perhapse we are missing something simple like "Run as Startup" vs "Set as Startup."  Here are a couple links that should help out.

Designating a LabVIEW Application to Start When the cRIO Boots

Building a Stand-Alone Real-Time Application (RT Module)

Mark
NI App Software R&D
0 Kudos
Message 2 of 5
(3,173 Views)

The motor control example doesn't have a build specification to deploy it. Therefore, it would be helpful to know how you set it up, in case that is the problem. In addition, in the motor control example, the speed is determined by a front panel control. You mentioned that you changed the "constant", that either means you changed the example to use a constant, or you didn't change what you thought you changed. Based on that ambiguity, it would be very helpful if you gave more details about exactly what you did.

One thing to look out for is the default value of the front panel control. Once you change it, if you want it to be that value when you deploy, you need to right click and go to data operations and save that value as the default. You could also change the control to a constant, and set that.

0 Kudos
Message 3 of 5
(3,173 Views)

Hi there!
Thanks for help.I actually didn't build the application in the first place.I'm using the simple motor control VI from Labview site.I tried building the stand-alone .exe and now when I deploy the application ,it works fine for me.I'm using a constant value of 0.1 and I saved it along with the VI.

But still am quite unsure as of why the deploy from project explorer window didn't work?

Thanks,
Murthy

0 Kudos
Message 4 of 5
(3,173 Views)

If there is not an RTEXE built then you aren't actually deploying any code to be executed.  Instead you are just deploying target configuration information and a couple of other items. 

Mark
NI App Software R&D
0 Kudos
Message 5 of 5
(3,173 Views)