LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating EXEs using VI server

Can i create exes using VI server in RT embedded controller . how do call a vi in run time and run it on RT target.
Suresh Thangappan
0 Kudos
Message 1 of 4
(3,052 Views)
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
0 Kudos
Message 2 of 4
(3,052 Views)
Can u send me the example you are taking about since i have only LAb veiw 7.0 version also i just want to know wheather a exe created can be deployed on run time using system exe at the desired RT location.if so can u send me an example in this regard.
Suresh Thangappan
0 Kudos
Message 3 of 4
(3,052 Views)
Hello,

The example I spoke of above is also present in LabVIEW RT 7.0. Just follow the same instructions from above to access it.

As for you second question, if I understand you correctly, you just want to know how to build an EXE for a real-time system. This is definitely possible and Chapter 7 or the LabVIEW Real-time User Manual gives a detailed description of how to do this. To access the User Manual, access the Start menu and go to Programs -> National Instruments -> LabVIEW 7.0 -> Module Documents -> Search the LabVIEW Real-Time Bookshelf. This will open a short pdf document. Click on the link which says LabVIEW Real-time Module User Manual.

Let me know if there is anything I can help with or clarify.

Ken S.
Applications Engin
eering
National Instruments
0 Kudos
Message 4 of 4
(3,052 Views)