Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Sep 6, 2006


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Controlling Two Executables with the VI Server

0 ratings | 0.00 out of 5
Print

Downloads

Filename: control_exe_viserver.zip
Requirements: View

This example demonstrates how to control two executables with the VI Server. Master.vi uses the VI Server to open Slave.vi, which is located in the same directory as Master.vi. The Front Panel Window:Open property is set to TRUE to make the front panel of Slave.vi visible. The Run VI method runs the Slave.vi, which is similar to calling a subVI. However, because the Wait until done parameter is set to FALSE, Slave.vi runs independently of Master.vi. However, Master.vi can programmatically update the values of the controls on the front panel of Slave.vi.

Click the Update button to enable or disable programmatic control of the front panel of Slave.vi. If the values of the Update, Numeric A, Numeric B, Boolean A, or Boolean B controls change values, the VI generates a Value Change event. This event calls the Set Control Value method for each control and updates the values of the corresponding controls on the front panel of Slave.vi. In order for the values of the controls to update, the value of the Control Name parameter must match the name of the control on the front panel of Slave.vi. The Flatten to String functions flatten the data for the Type Descriptor and Flattened Data parameters.

The Close Reference function on the outside of the While Loop ends the VI Server session.

Requirements


Filename: control_exe_viserver.zip

Software Requirements


Application Software: LabVIEW Base Development System 7.0
Language(s): LabVIEW

 
0 ratings | 0.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).