Hello,
There is no way I�m aware of to build an EXE on an RT controller using VI server. Executables can be built by using the LabVIEW Application Builder on the Host PC (by going to �Tools->Build Application� or Shared Library (DLL)... on the menu in LabVIEW).
As for running VIs on an RT target using VI server, this should not be a problem. The procedure to follow to do this is the same as if you wanted to execute a VI on a remote Windows PC. The first step is to enable the VI server on the RT target.
To do this, target the RT controller and go to �Tools-> RT Target: Options�� on the LabVIEW menu. Under the �VI Server: Configuration� category make sure that the TCP/IP box is checked. This will enable VI server. Next go to �VI Server: TCP/IP Access�,
and add the IP address of the host PC (or you can add �*� to allow all IP addresses to access the RT controller).
After this configuration has been done, you can write a VI that remotely calls VIs on the RT controller. The basic format is to call the Open Application Reference VI to access the RT controller, then call Open VI Reference to open a reference to the specific VI you�d like to call, and then use a Call By Reference Node to execute the VI opened by the Open VI Reference VI. An excellent example of doing this remote VI calling is installed with the LV RT module (version 7.1). This example VI is called �VI Server Manager.vi� and can be found in the Example Finder (Help-> Find Examples�) at �Toolkits and Modules -> Real-time -> Deploying�.
I hope this helps. Please let me know if there is anything I can help with or clarify.
Ken S.
Applications Engineering
National Instruments