Jump to content

Updating cFP VIs


Recommended Posts

I've a distant cFP unit that needs an update to the VIs running on it. App Builder (LV7.1) has options to prompt for an RT target, so I bundled it all up into an .exe to ship to the client, who then ran it and selected the cFP unit. It downloaded without error, but following a cFP reboot the old app is still there.

Is there a way to get an executable I can send to the client which permanently updates cFP in the same way as when I run App Builder on a PC local to the cFP unit and build directly to cFP? The way I've tried so far seems to be akin to targetting Labview at cFP, loading the VIs and then selecting "Exit without closing RT Engine VIs".

Link to post
Share on other sites

I've a distant cFP unit that needs an update to the VIs running on it. App Builder (LV7.1) has options to prompt for an RT target, so I bundled it all up into an .exe to ship to the client, who then ran it and selected the cFP unit. It downloaded without error, but following a cFP reboot the old app is still there.

Is there a way to get an executable I can send to the client which permanently updates cFP in the same way as when I run App Builder on a PC local to the cFP unit and build directly to cFP? The way I've tried so far seems to be akin to targetting Labview at cFP, loading the VIs and then selecting "Exit without closing RT Engine VIs".

Link to post
Share on other sites

QUOTE(CraigGraham @ Nov 26 2007, 05:58 AM)

I've a distant cFP unit that needs an update to the VIs running on it. App Builder (LV7.1) has options to prompt for an RT target, so I bundled it all up into an .exe to ship to the client, who then ran it and selected the cFP unit. It downloaded without error, but following a cFP reboot the old app is still there.

Is there a way to get an executable I can send to the client which permanently updates cFP in the same way as when I run App Builder on a PC local to the cFP unit and build directly to cFP? The way I've tried so far seems to be akin to targetting Labview at cFP, loading the VIs and then selecting "Exit without closing RT Engine VIs".

I'm not sure of a way to do it programmatically while loading an exe, but you could just get them to use IE to ftp into the cFP and rename the old exe using windows and delete it, then do the install again.

Neville.

Link to post
Share on other sites

QUOTE(CraigGraham @ Nov 26 2007, 05:58 AM)

I've a distant cFP unit that needs an update to the VIs running on it. App Builder (LV7.1) has options to prompt for an RT target, so I bundled it all up into an .exe to ship to the client, who then ran it and selected the cFP unit. It downloaded without error, but following a cFP reboot the old app is still there.

Is there a way to get an executable I can send to the client which permanently updates cFP in the same way as when I run App Builder on a PC local to the cFP unit and build directly to cFP? The way I've tried so far seems to be akin to targetting Labview at cFP, loading the VIs and then selecting "Exit without closing RT Engine VIs".

I'm not sure of a way to do it programmatically while loading an exe, but you could just get them to use IE to ftp into the cFP and rename the old exe using windows and delete it, then do the install again.

Neville.

Link to post
Share on other sites

QUOTE(CraigGraham @ Nov 26 2007, 05:58 AM)

......"Exit without closing RT Engine VIs".

I am using LabVIEW 8.2.1 for programming cFP and the only way to upgrade the VI on cFP is by building EXE and setting the EXE as "startup" before deploying. I am pretty sure that it should be possible on LV 7.1 too. Setting as "startup" and deploying will configure the cFP to run the EXE on power up. This way, you do not have to "Exit without closing RT Engine VIs". Also, cFP power reset will not matter.

I am also looking around for programatically upgrading software of cFP, so that multiple cFPs can be upgraded from a PC on same network.

--- Ashish

Link to post
Share on other sites

QUOTE(CraigGraham @ Nov 26 2007, 05:58 AM)

......"Exit without closing RT Engine VIs".

I am using LabVIEW 8.2.1 for programming cFP and the only way to upgrade the VI on cFP is by building EXE and setting the EXE as "startup" before deploying. I am pretty sure that it should be possible on LV 7.1 too. Setting as "startup" and deploying will configure the cFP to run the EXE on power up. This way, you do not have to "Exit without closing RT Engine VIs". Also, cFP power reset will not matter.

I am also looking around for programatically upgrading software of cFP, so that multiple cFPs can be upgraded from a PC on same network.

--- Ashish

Link to post
Share on other sites

QUOTE(ashishuttarwar @ Nov 26 2007, 12:20 PM)

I am using LabVIEW 8.2.1 for programming cFP and the only way to upgrade the VI on cFP is by building EXE and setting the EXE as "startup" before deploying. I am pretty sure that it should be possible on LV 7.1 too. Setting as "startup" and deploying will configure the cFP to run the EXE on power up. This way, you do not have to "Exit without closing RT Engine VIs". Also, cFP power reset will not matter.

Yeah, using App Builder on the machine having set the LV execution target to cFP gives you that startup option and installs straight to cFP. As far as I can tell, though, there's no way of getting that option if you don't have the target cFP connected.

There's unofficially a dev environment still installed down there that I shoved on for debugging, so for the moment I can talk him through App Builder on the phone, but if we can't officially update a cFP installation without going down with a full development system then it's a mark against using them in future. Specs and requirements change!

Re using IE to go in and delete the existing exe- that'll just stop it doing anything from power on until the App Builder exe shoves the transient runtime code down.

Thanks for the responses- least it seems I'm not missing something stoopid :)

Link to post
Share on other sites

QUOTE(CraigGraham @ Nov 27 2007, 01:20 AM)

Uhh.. I think thats a bit of over-reaction. Like I said before, its trivial to replace an exe (of the same name) with a new one on any of NI's real-time platforms. You don't need a full-blown development environment to download the code.

Do it manually through IE, or use the FTP functions in NI-MAX, or else you could use the Internet Toolkit VI's to build your own application that

1 renames the original app (so it can be deleted)

2 deletes the remote app

3 downloads the new app

4 reboots the cFP so that the new codes starts running.

QUOTE(CraigGraham @ Nov 27 2007, 01:20 AM)

Re using IE to go in and delete the existing exe- that'll just stop it doing anything from power on until the App Builder exe shoves the transient runtime code down.

Well, I'm not sure what your upto, but how else do you expect to replace a running exe?? You will have to stop it momentarily to replace and then reboot to run the new app. Again if you replace the file with IE you don't need the app builder etc.

Just send them the new startup.exe file and ask them to replace in the ni-rt/startup folder by dragging & dropping and thats it.

Neville.

Link to post
Share on other sites

QUOTE(ashishuttarwar @ Nov 26 2007, 12:20 PM)

I am using LabVIEW 8.2.1 for programming cFP and the only way to upgrade the VI on cFP is by building EXE and setting the EXE as "startup" before deploying. I am pretty sure that it should be possible on LV 7.1 too. Setting as "startup" and deploying will configure the cFP to run the EXE on power up. This way, you do not have to "Exit without closing RT Engine VIs". Also, cFP power reset will not matter.

I am also looking around for programatically upgrading software of cFP, so that multiple cFPs can be upgraded from a PC on same network.

--- Ashish

We have used a method similar to what Neville has been discribing in LV 8.2.1. That method should work right up until you want to change the IP address. If you serach through all of the files on the RT node, you will find a couple of files that have the IP address. Just mod those files before writting to the FP and you are off and running.

Ben

Link to post
Share on other sites

QUOTE(rolfk @ Nov 27 2007, 12:51 PM)

Another one is to use the http://zone.ni.com/devzone/cda/tut/p/id/3937' target="_blank">RT System Replication VI library available on NIs site. With that you can build a LabVIEW app to install, control, and upload new RT exe files on the target.

Rolf Kalbermatter

Your right.. I forgot to mention, I built my own tool that does that as well as reboots the targets, reads remote ini settings, opens remote front panels, ftp's remote files to and from the targets automatically etc. I just call the NI utility (suitably modified) into a sub-panel of my main utility and go from there.

One downside of the NI library is that many of the VI's are locked, so minor adjustments in some cases are not possible.

Still its pretty usable.

Neville.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.