Complete the following steps to create an EPICS Client I/O
server programmatically.
Add the Create EPICS Client VI to the block diagram.
Right-click the EPICS Client URL in input of the
Create EPICS Client VI and select
Create»Constant or
Create»Control from the shortcut menu. In the
constant or control, specify the location to create the EPICS Client I/O
server.
Add the Add Record VI to the block diagram.
Wire the EPICS Client ref output of the Create
EPICS Client VI to the EPICS Client ref in
input of the Add Record VI.
Right-click the record name input of the Add
Record VI and select Create»Constant or
Create»Control from the shortcut menu. In the
constant or control, specify the name of the record you want to add to the EPICS
Client I/O server.
Add the Add Field VI to the block diagram.
Wire the EPICS Client ref out output of the Add
Record VI to the EPICS Client ref in input
of the Add Field VI.
Wire the constant or control of the record name input of
the Add Record VI to the record name
input of the Add Field VI.
Right-click the field name input of the Add
Field VI and select Create»Constant or
Create»Control from the shortcut menu. In the
constant or control, specify the name of the field you want to add to the EPICS
Client I/O server.
Optional: Right-click the access type input of the Add
Field VI and select Create»Constant or
Create»Control from the shortcut menu. In the
constant or control, select the access type for the field.
Optional: Right-click the data type input of the Add
Field VI and select Create»Constant or
Create»Control from the shortcut menu. In the
constant or control, select the data type for the field.
Add the Deploy EPICS Client VI to the block diagram.
Wire the EPICS Client ref out output of the Add
Field VI to the EPICS Client ref in input
of the Deploy EPICS Client VI.
Run this VI to create and deploy the EPICS Client I/O server and to subscribe
to the process variables on the EPICS network.