Using Custom VI-Based I/O Servers
- Updated2025-11-07
- 2 minute(s) read
Use a custom I/O server to simulate hardware or connect the DSC Module to hardware for which no device server exists.
When you have a uniquely configured or custom device that you want to use with the LabVIEW Datalogging and Supervisory Control (DSC) Module you create custom I/O servers with LabVIEW, unlike OPC servers, which are typically written in Microsoft Visual Basic or C++. A custom I/O server publishes selected data items as Publish-Subscribe Protocol data items on the network. The custom I/O server shares ownership of the data with the Shared Variable Engine (SVE), which publishes the data.
For example, you might want to create a custom I/O server in the following situations:
- You do not have an OPC server to handle communication between hardware and LabVIEW. Custom VI-based I/O servers can interface directly with the hardware and expose data items through the SVE.
- You want to create a simulation server to emulate hardware connections.
You can create two types of custom I/O servers: on input change I/O servers and periodic I/O servers. Create an on input change I/O server if you want the custom I/O server to update based on an event, such as a change in the value of the input of the server data item. Create a periodic I/O server when you want to control the update rate of a data item and when you want a continuous update of the data item.
The DSC Module provides two wizards to help you create custom I/O servers:
To create a custom I/O server, right-click My Computer or a LabVIEW 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, you can select Custom VI - On Input Change or Custom VI - Periodic.