[acg] how to get list of epics signal values
Kyle Hesse
hesse at jlab.org
Wed Jan 15 06:48:31 EST 2025
Another option from Bevins:
Using caget and the request type:
caget -d CTRL_ENUM PLC_HLA_A
PLC_HLA_A
Native data type: DBF_ENUM
Request type: DBR_CTRL_ENUM
Element count: 1
Value: Lockdown
Status: NO_ALARM
Severity: NO_ALARM
Enums: (12)
[ 0] Unknown
[ 1] Restricted
[ 2] Sweep Progress
[ 3] Sweep Complete
[ 4] Controlled
[ 5] Power Permit
[ 6] Beam Permit 1
[ 7] Beam Permit 2
[ 8] Laser Permit
[ 9] Lockdown
[10] Inj Restricted Maint
[11] Inj Controlled Maint
________________________________
From: acg <acg-bounces at jlab.org> on behalf of Kyle Hesse via acg <acg at jlab.org>
Sent: Tuesday, January 14, 2025 11:32 PM
To: acg at jlab.org <acg at jlab.org>; Theo McGuckin <tsm at jlab.org>
Subject: Re: [acg] how to get list of epics signal values
Checking my email before bed...
Here's a few options:
Make sure your EPICS_CA_ADDR_LIST is properly set for the channels you want to view.
Python cainfo:
python3 -c "import epics; epics.cainfo('PLC_HLA_A')"
Channel Access Print Record:
/usr/dvlepics/epics/R7.0.7.0.J0/bin/rhel-9-x86_64/capr.pl -l 10 PLC_HLA_A
This could be parsed for the value and string fields:
Values -> ZRVL ONVL TWVL THVL FRVL FVVL SXVL SVVL EIVL NIVL TEVL ELVL TVVL TTVL FTVL FFVL
Strings -> ZRST ONST TWST THST FRST FVST SXST SVST EIST NIST TEST ELST TVST TTST FTST FFST
Probe:
GUI for channel lookup and info
probe PLC_HLA_A
[cid:773c556f-92d6-4837-9bec-d0ec2f030184]
Click Info
[cid:79e51c78-4581-450d-8980-f0249e82b419]
________________________________
From: acg <acg-bounces at jlab.org> on behalf of Theo McGuckin via acg <acg at jlab.org>
Sent: Tuesday, January 14, 2025 9:26 PM
To: acg at jlab.org <acg at jlab.org>
Subject: [acg] how to get list of epics signal values
I think there's a command to get list of values for an epics signal (when there is a fixed list, and not just a float or int)?
For example, PLC_HLA_A can "Restricted" or "Controlled" or "Sweep"... is there a command to list all allowed values?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.jlab.org/pipermail/acg/attachments/20250115/cba89dbf/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 19596 bytes
Desc: image.png
URL: <https://mailman.jlab.org/pipermail/acg/attachments/20250115/cba89dbf/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 32563 bytes
Desc: image.png
URL: <https://mailman.jlab.org/pipermail/acg/attachments/20250115/cba89dbf/attachment-0003.png>
More information about the acg
mailing list