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.
For you convenience I have included a link to the product page for the LabVIEW Internet Toolkit:
NI LabVIEW Internet ToolkitI hope this helps. Please let me know if there is anything I can clarify or help with.
Ken S.
Applications Engineering
National Instruments