10-13-2004 12:16 PM
10-18-2004
05:59 PM
- last edited on
08-07-2025
04:41 PM
by
Content Cleaner
Hello Don,
I think I can clarify some of the information included in the tutorial �Easy Ways to Launch Code Targeted to the Real-Time Controller�, and maybe give you some ideas for how to accomplish your application.
Some of the wording in the tutorial is slightly misleading. The method of invoking the LabVIEW EXE with the target parameter and a VI specified will only open up LabVIEW with the specified VI targeted to the specified RT target. It will not download the VI to the target.
To download the executable you can go to the menu and choose Operate>>Download Application. This will download the VI to the RT target�s memory, but will not begin execution.
To programmatically do this there are two methods:
The first is detailed in the Tutorial you refe
rred to earlier under the section �Launching Executables on the RT Controller using Shortcuts.� This method involves turning your VI into an executable and creating a shortcut to launch it on the RT target instead of the Windows Host PC.
The second method is to use a procedure very similar to what you mentioned in your post. This method would be to FTP the VI to the RT controller (using the FTP VIs included in the LabVIEW Internet Toolkit) and then launch it using the Call By Reference method you described above.
I hope this helps. Please let me know if there is anything I can clarify or help with.
Ken S.
Applications Engineering
National Instruments
10-19-2004 07:28 AM
10-20-2004 12:43 PM
10-21-2004 02:35 PM
10-22-2004
03:36 PM
- last edited on
08-07-2025
04:42 PM
by
Content Cleaner
Don,
I tested this out on a CVS system and was able to get it working. The Call By Reference locked up because the Untitled.vi will loop until a stop button on its front panel is pressed. Obviously, the stop button cannot be pressed since we have no front panel interface to the VI.
I�ve modified my previous VIs so that the VI which runs on the target will run for 10 seconds and then exit, so now the Call By Reference Node should block for about 10 seconds and then it will stop execution.
As a side note if you are using LabVIEW RT 7.1, there is a new tool called the Real-Time System Manager which allows you to monitor which VIs are running on the RT target, along with seeing memory and CPU usage.
Let me know if you have any problems with this.
Ken S.
Applications Engineering
National Instruments
10-27-2004 08:57 AM
09-01-2009 05:51 AM