You can put VIs into RT memory two ways:
1) Manually download the VI from the LabVIEW menu (or using the Run button)
2) FTP the VI to disk, then load it into memory using Open VI Reference. If you do this from the host PC, make sure to open an application reference to your RT target first. The functions "Open Application Reference" and "Open VI Reference" are on the VI Server palette.
***sneaky way***
Make a copy of LabVIEW.exe. Leave VI Server running on port 3363 for one of the exes. For the other LabVIEW exe, change the VI Server port to something else (like 3364). You can automate a download by doing the following:
In a batch script, perl script, makefile, etc, you can run LabVIEW.exe with the following comma
nd line arg: "-target vvv.xxx.yyy.zzz". That'll launch LabVIEW and target it to your PXI box. In the same batch process, run Copy of LabVIEW.exe with the command line arg: "
". The VI you specify here needs to open an application reference to LabVIEW.exe on port 3363 (note: it's important that Copy of LabVIEW.exe runs VI Server on a different port, otherwise it will open an app reference to itself). The VI can then open a VI ref to whatever you want to download to the RT target and call the Run method, which will force the VI into RT memory (because LabVIEW.exe is targeted!).