Creating On Input Change I/O Servers
- Updated2025-11-07
- 3 minute(s) read
Use the following guidelines to create an on input change I/O server.
- Create a custom I/O server in the Project Explorer window.
- Configure the on input change I/O server by using the Custom VI-based Server – On Input Change wizard.
- 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:
- 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.
- In the Create New I/O Server dialog box, select Custom VI - On Input Change and click the Continue button.
- 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.
- 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.
- 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.
- Click the Next button to continue.
- On the Configure Server Distribution Component page, enter a name for the server configuration in the Configuration name text box.
- Use the Browse button in the Support files section to navigate to the support files necessary to run the server.
- Click the Add button to add the support files to the list of Support files.
- Click the Next button.
- 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.
- Click the Next button.
- 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.
- Click the Next button.
- 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.
- Click the Finish button.