You can use the Custom VI-based Server – On Input Change Wizard to create an on input change I/O server. 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.
The Shared Variable Engine launches the on input change I/O server when you load a LabVIEW process that includes an on input change I/O server. The on input change I/O server remains loaded until the process stops, recalculating published data items when any input changes or when a trigger condition occurs. On input change I/O servers do not have shutdown or timeout settings.
To create an on input change I/O server, first create a VI that reads values, performs calculations, and returns a result. Then use the Custom VI-based Server – On Input Change Wizard to convert the VI to an on input change I/O server and configure the on input change I/O server in a process.
Use the following guidelines when you create the calculation VI:
The Custom VI-based Server – On Input Change Wizard checks these items, except for execution speed, when you attempt to convert a calculation VI to an on input change I/O server.
To convert the calculation VI into an on input change I/O server, right-click My Computer or a project library in the Project Explorer window 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 to create and configure the on input change I/O server. The Custom VI-based Server – On Input Change Wizard creates the VIs located in the National Instruments\Shared\DSC\Custom VI Input Change Server\8.0\filename folder.
Use the NI Shared Variable Monitor to ensure that the on input change I/O server publishes values as expected.
Before you can deploy an application that includes an on input change I/O server, you must copy the following items to the deployment computer: