loc:// which can be omitted if configured as the default datasource.
'Local' pvs are transient that exist in the current program instance. They can be used to communicate between between different components of the application. The syntax to create a local pv is:
| Syntax | Description |
|---|---|
loc://pvname | Creates a pv with 0 for an initial value |
loc://pvname(number) | Creates a pv with an initial numeric value |
loc://pvname("string") | Creates a pv with an initial text value |
loc://pvname(number, number, number, ...) | Creates a pv with an initial numeric array value |
loc://pvname("string", "string", "string", ...) | Creates a pv with an initial string array value |
The same pv can be open multiple times; the last initialization value winds. At this moment, local pvs do not have a type.