Use the following guidelines to create an on input change I/O server.

  1. Create a custom I/O server in the Project Explorer window.
  2. Configure the on input change I/O server by using the Custom VI-based Server – On Input Change wizard.
  3. Set the initial values for the inputs of the on input change I/O server.

To create another on input change I/O server by using the same custom I/O server, you do not need to create the custom I/O server again. In this situation, you can set the initial values for the inputs to reconfigure the I/O server.

Creating a New On Input Change I/O Server in the Project Explorer Window

Complete the following steps to create a new on input change I/O server in the Project Explorer window:

  1. In the Project Explorer window, right-click a target, such as the My Computer target, and select New»I/O Server from the shortcut menu.
  2. In the Create New I/O Server dialog box, select Custom VI - On Input Change and click the Continue button.
  3. In the Configure Custom VI - On Input Change I/O Server dialog box, click the New button to display the Custom VI-based Server – On Input Change wizard. You also can select Tools»DSC Module»VI Based Server Wizard»On Input Change to display the Custom VI-based Server – On Input Change wizard.

Configuring the On Input Change I/O Server by Using the Custom VI-based Server – On Input Change Wizard

The Custom VI-based Server – On Input Change wizard converts a VI into a custom I/O server that performs calculations for an application and publishes the calculated results as NI Publish-Subscribe Protocol (NI-PSP) data items to the network. This wizard contains three pages that you must configure. Complete the following steps to configure the on input change I/O server.

  1. On the Select VI page, enter the path to the VI that you want to convert into an on input change I/O server in the Path to VI text box. You also can use the Browse button to navigate to the VI.
  2. If you installed the LabVIEW VI Analyzer Toolkit, place a checkmark in the Run VI Analyzer on VI checkbox. The VI Analyzer Toolkit can help you optimize the VI by running tests on the VI.
  3. Click the Next button to continue.
  4. On the Configure Server Distribution Component page, enter a name for the server configuration in the Configuration name text box.
  5. Use the Browse button in the Support files section to navigate to the support files necessary to run the server.
  6. Click the Add button to add the support files to the list of Support files.
  7. Click the Next button.
  8. On the Server Distribution Component page, the wizard shows a summary of what the wizard is going to build. Click the Build button. LabVIEW shows a Build Status dialog box.
    Note LabVIEW creates and places the I/O server dependency files in the National Instruments\Shared\DSC\Custom VI Input Change Server\version number\filename folder.

Setting the Initial Values of the On Input Change I/O Server

After the Custom VI-based Server – On Input Change wizard builds the files, the Configure Custom VI – On Input Change I/O Server dialog box appears again. Complete the following steps to use this dialog box to set the initial values for the inputs for the on input change I/O server.

  1. Click the Next button.
  2. On the Select Run Condition page, specify when you want the VI to run. The VI can run when any input value changes or when a specific input value changes. If you select the Run VI when specific input changes option, you also must select an input from the Input pull-down menu.
  3. Click the Next button.
  4. On the Set Initial Values page, you can assign initial values for the inputs on the VI. Select an input from the Input connectors table and enter a value in the text box that appears to the right of the table.
  5. Click the Finish button.