PV Browser¶
The PV Browser lets you explore, search, and manage the Process Variables (PVs) in your system.
Accessing the PV Browser¶
Click Browse PVs in the sidebar.
Browsing PVs¶
The PV Browser lists the PVs in the facility chosen in the header, including facilities below it. Choose All facilities to see every PV. See Facilities.
| Column | Description |
|---|---|
| Device | The device this PV belongs to |
| Setpoint | The setpoint PV address |
| Readback | The readback PV address, shortened (see below) |
| Description | A human-readable description |
| Tags | The PV's tags |
To save space, the Readback column doesn't repeat the setpoint: a readback that contains the setpoint shows only the rest, such as :RBV for QUAD:LI21:201:BDES:RBV, and one identical to the setpoint shows -. A readback-only PV shows its full readback.
PVs load 100 at a time as you scroll. The count above the table says how many match your search and filters.
Searching for PVs¶
Type in Search PVs to find PVs whose setpoint, readback, config address, device, or description contains the text. Matching ignores case.
The search matches text anywhere in those fields, so QUAD:LI21 finds every PV with that in its address. * and ? are matched as ordinary characters, not wildcards.
To narrow the list further, use the tag dropdowns below the search box; see Filtering by Tags.
Adding PVs¶
Admin Required
Adding PVs requires admin privileges.
Adding Individual PVs¶
- Click Add PV.
- In Create a New PV, enter a Setpoint, a Readback, or both. The readback must be different from the setpoint.
- Optionally fill in Device, Description, Absolute Tolerance, Relative Tolerance, and the PV's Tags.
- Choose the PV's Facilities. A PV can belong to more than one. The facility chosen in the header is selected to start with, if your API key can reach it. Facilities your key can't reach are disabled and marked (no access). If your key only has access to some facilities, at least one facility is required.
- Click Create.
A PV with only a readback is readback-only: it is saved in snapshots but never written on restore. Tolerances set how far a live value can be from its saved value before it counts as different; see PV Details.
To change an existing PV's facilities, click the PV and edit Facilities in the details panel (see PV Details).
Importing from CSV¶
For bulk additions, you can import PVs from a CSV file.
- Click Import PVs.
- Choose your CSV file.
- Check the preview and any warnings.
- Click Import N PVs.
The import is all-or-nothing: if any row is rejected, for example because a PV with that address already exists, no PV is imported.
CSV Format¶
The first row holds column headers. Columns:
| Column | Required | Description |
|---|---|---|
| Setpoint | One of the two | Setpoint PV address |
| Readback | One of the two | Readback PV address |
| Device | No | The device this PV belongs to |
| Description | No | A human-readable description |
| Facilities | No | Facility slugs, comma-separated (e.g. "lcls-sc, facet") |
| Any other | No | A tag group, named by the header; tags are comma-separated |
Setpoint,Readback,Device,Description,Facilities,Area
QUAD:001:BDES,QUAD:001:BACT,QUAD:001,Quad 1 field,lcls-sc,"Undulator, LTU"
QUAD:002:BDES,,QUAD:002,Quad 2 field,"lcls-sc, lcls-nc",LTU
,BPM:001:X,BPM:001,BPM 1 X position,lcls-sc,LTU
CSV Headers
The first row should contain column headers. At minimum, a Setpoint or Readback column is required, and each row needs a setpoint or a readback. Device, Description and Facilities are optional, and any other column is a tag group whose cells list comma-separated tags.
Tags in a CSV must already exist; create them first, or import them with Import Tags. The preview lists any it doesn't recognize, and those are ignored.
A row with a readback but no setpoint is imported as a readback-only PV. Its value is saved in snapshots but never written on restore.
Rows with neither a setpoint nor a readback are skipped. A row with no Facilities goes into the facility chosen in the header, or no facility under All facilities.
The preview's Facilities column shows each row's facilities by name. A row with no Facilities shows the facility it will go into, marked (current facility), or None under All facilities.
Facilities are checked in the preview, and Import stays disabled until the file is fixed:
- Unknown facility: a slug that doesn't exist is shown in red, and the error names it. Unlike an unknown tag, it isn't ignored, since the PV would end up in the wrong facility.
- Missing access: a row your API key can't write has its facilities marked (no access), and the error lists the rows. A row is fine if your key can reach any one of its facilities. A row with no Facilities is checked against the facility chosen in the header.
If Squirrel couldn't load the facility list, a Facilities not checked warning appears instead, and Import stays enabled. An unknown facility then fails the import.
If an import is still refused (for example, your access changed after the page loaded), the error says which facilities and rows caused it.
Deleting PVs¶
With admin mode on, delete a PV with the delete icon in its row, or select several PVs with the checkboxes and click Delete Selected (N). Squirrel asks you to confirm first.
Deleting a PV also removes its saved values from every snapshot. A PV that is a meta PV must be removed from the snapshot list first; see Meta PVs.
Viewing PV Details¶
Click a PV to open its details panel; see PV Details.
Managing PV Tags¶
Tags are assigned to one PV at a time, in its details panel; see Assigning Tags to PVs. Selecting PVs with the checkboxes is only for deleting them.