Creating EPICS Server I/O Servers Programmatically
- Updated2025-11-07
- 2 minute(s) read
Creating EPICS Server I/O Servers Programmatically
- Add the Create EPICS Server VI to the block diagram.
- Right-click the EPICS Server URL in input of the Create EPICS Server VI and select Create»Constant or Create»Control from the shortcut menu. In the constant or control, specify the location to create the EPICS Server I/O server.
- Add the Create PV VI to the block diagram.
- Wire the EPICS Server ref output of the Create EPICS Server VI to the EPICS Server ref in input of the Create PV VI.
- Right-click the variable path input of the Create PV VI and select Create»Constant or Create»Control from the shortcut menu. In the constant or control, specify the path of the shared variable you want to publish to the EPICS Server I/O server.
- Optional: Right-click the PV name input of the Create PV VI and select Create»Constant or Create»Control from the shortcut menu. In the constant or control, specify the name of the process variable for the shared variable you want to publish.
- Optional: Right-click the access type input of the Create PV VI and select Create»Constant or Create»Control from the shortcut menu. In the constant or control, select the access type for the process variable.
- Optional:
Specify the data type of the process variable by using one of the following
methods:
Note If the shared variable exists, you do not need to wire the data type input.
- Wire a data type control or constant, such as a numeric constant, with a default value to the data type input of the Create PV VI. The constant or control you wire to the data type input specifies the data type of the process variable.
- Wire the shared variable reference to the Variable Property Node, select the Data Type property, and wire the Data Type output of the Variable Property Node to data type input of the Create PV VI.
- Add the Deploy EPICS Server VI to the block diagram.
- Wire the EPICS Server ref out output of the Create PV VI to the EPICS Server ref in input of the Deploy EPICS Server VI.
- Run this VI to create and deploy the EPICS Server I/O server and to create a process variable for the shared variable you publish to the EPICS Server I/O server.