LabVIEW Datalogging and Supervisory Control Module

Table of Contents

Create PV VI

  • Updated2023-02-21
  • 3 minute(s) read

Create PV VI

Owning Palette: EPICS Server VIs

Requires: DSC Module or Real-Time Module

Creates or updates attributes of a process variable (PV) for the shared variable or I/O variable (IOV) that you want to publish to the EPICS Server I/O server.

Example

access type specifies the access type for the process variable (PV).

0Read/Write (Default)—Specifies that the EPICS clients can read and update the value of this PV.
1Read Only—Specifies that the EPICS clients can read the value of this PV but cannot update this value.
EPICS Server ref in specifies the refnum for an EPICS Server I/O server. Use the Create EPICS Server VI to create or open a refnum for an EPICS Server I/O server.
variable path specifies the path for the shared variable or the I/O variable (IOV) that you want to publish. To specify the path under a process, enter variable path in one of the following formats:
  • \\.\process\variable
  • \\computer\process\variable
You also can specify the path as a variable identifier URL.
PV name specifies the name of the process variable (PV) for the shared variable or IOV that you want to publish. If you do not wire PV name, this VI sets the PV name to the format computer:process:variable.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
data type specifies the data type of the shared variable or I/O variable (IOV). You can specify data type by using one of the following methods.
  • Wire a control or constant, such as a numeric constant, with a default value to data type.
  • Wire the shared variable or IOV reference to the Variable Property Node, select the Data Type property, and wire the output of the Data Type property to data type.
If the shared variable or IOV exists, you do not need to wire data type. The EPICS Server I/O server recognizes the data type. If the shared variable or IOV does not exist, you must wire data type.
EPICS Server ref out returns the refnum for the EPICS Server I/O server.
error out contains error information. This output provides standard error out functionality.

Example

Refer to the EPICS Server API.lvproj in the labview\examples\comm\EPICS\EPICS Server API directory for an example of using the Create PV VI.

Log in to get a better experience