<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-size: 12pt;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; color: rgb(0, 0, 0);">Another option from Bevins:<br>
<br>
<b>Using caget and the request type:</b><br>
<br>
</span><span style="font-family: Courier New, monospace; color: black;">caget -d CTRL_ENUM PLC_HLA_A<br>
<br>
</span></div>
<div style="font-family: Courier New, monospace; font-size: 12pt; color: black;">
PLC_HLA_A</div>
<div style="font-family: Courier New, monospace; font-size: 12pt; color: black;">
Native data type: DBF_ENUM</div>
<div style="font-family: Courier New, monospace; font-size: 12pt; color: black;">
Request type: DBR_CTRL_ENUM</div>
<div style="font-family: Courier New, monospace; font-size: 12pt; color: black;">
Element count: 1</div>
<div style="font-family: Courier New, monospace; font-size: 12pt; color: black;">
Value: Lockdown</div>
<div style="font-family: Courier New, monospace; font-size: 12pt; color: black;">
Status: NO_ALARM</div>
<div style="font-family: Courier New, monospace; font-size: 12pt; color: black;">
Severity: NO_ALARM</div>
<div style="font-family: Courier New, monospace; font-size: 12pt; color: black;">
Enums: (12)</div>
<div style="font-family: Courier New, monospace; font-size: 12pt; color: black;">
[ 0] Unknown</div>
<div style="font-family: Courier New, monospace; font-size: 12pt; color: black;">
[ 1] Restricted</div>
<div style="font-family: Courier New, monospace; font-size: 12pt; color: black;">
[ 2] Sweep Progress</div>
<div style="font-family: Courier New, monospace; font-size: 12pt; color: black;">
[ 3] Sweep Complete</div>
<div style="font-family: Courier New, monospace; font-size: 12pt; color: black;">
[ 4] Controlled</div>
<div style="font-family: Courier New, monospace; font-size: 12pt; color: black;">
[ 5] Power Permit</div>
<div style="font-family: Courier New, monospace; font-size: 12pt; color: black;">
[ 6] Beam Permit 1</div>
<div style="font-family: Courier New, monospace; font-size: 12pt; color: black;">
[ 7] Beam Permit 2</div>
<div style="font-family: Courier New, monospace; font-size: 12pt; color: black;">
[ 8] Laser Permit</div>
<div style="font-family: Courier New, monospace; font-size: 12pt; color: black;">
[ 9] Lockdown</div>
<div style="font-family: Courier New, monospace; font-size: 12pt; color: black;">
[10] Inj Restricted Maint</div>
<div style="font-family: Courier New, monospace; font-size: 12pt; color: black;">
[11] Inj Controlled Maint</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> acg <acg-bounces@jlab.org> on behalf of Kyle Hesse via acg <acg@jlab.org><br>
<b>Sent:</b> Tuesday, January 14, 2025 11:32 PM<br>
<b>To:</b> acg@jlab.org <acg@jlab.org>; Theo McGuckin <tsm@jlab.org><br>
<b>Subject:</b> Re: [acg] how to get list of epics signal values</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div dir="ltr">
<div class="x_elementToProof" style="margin-top:1em; margin-bottom:1em; font-size:12pt">
<span style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; color:rgb(0,0,0)">Checking my email before bed...<br>
<br>
Here's a few options:<br>
<br>
Make sure your EPICS_CA_ADDR_LIST is properly set for the channels you want to view.<br>
<br>
<b>Python cainfo:</b><br>
<br>
</span><span style="font-family:Consolas,Courier,monospace; color:rgb(0,0,0)">python3 -c "import epics; epics.cainfo('PLC_HLA_A')"</span><span style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; color:rgb(0,0,0)"><br>
<br>
<b>Channel Access Print Record:</b><br>
</span><span style="font-family:Consolas,Courier,monospace; color:rgb(0,0,0)"><br>
/usr/dvlepics/epics/R7.0.7.0.J0/bin/rhel-9-x86_64/capr.pl -l 10 PLC_HLA_A</span><span style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; color:rgb(0,0,0)"><br>
<br>
This could be parsed for the value and string fields:<br>
<br>
Values -> ZRVL ONVL TWVL THVL FRVL FVVL SXVL SVVL EIVL NIVL TEVL ELVL TVVL TTVL FTVL FFVL </span></div>
<div style="margin-top:1em; margin-bottom:1em; font-size:12pt; color:rgb(0,0,0)">
<span style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif">Strings -> ZRST ONST TWST THST FRST FVST SXST SVST EIST NIST TEST ELST TVST TTST FTST FFST<br>
<br>
<b>Probe:<br>
<br>
</b>GUI for channel lookup and info<br>
<br>
</span><span style="font-family:Consolas,Courier,monospace">probe PLC_HLA_A<br>
<br>
<img size="19596" style="max-width:1860px" data-outlook-trace="F:2|T:2" src="cid:773c556f-92d6-4837-9bec-d0ec2f030184"><br>
<br>
Click Info<br>
<br>
<img size="32563" style="max-width:1860px" data-outlook-trace="F:2|T:2" src="cid:79e51c78-4581-450d-8980-f0249e82b419"></span></div>
<div class="x_elementToProof" style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div id="x_appendonsend"></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> acg <acg-bounces@jlab.org> on behalf of Theo McGuckin via acg <acg@jlab.org><br>
<b>Sent:</b> Tuesday, January 14, 2025 9:26 PM<br>
<b>To:</b> acg@jlab.org <acg@jlab.org><br>
<b>Subject:</b> [acg] how to get list of epics signal values</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div dir="ltr">
<div class="x_x_elementToProof" style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
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)?<br>
<br>
For example, PLC_HLA_A can "Restricted" or "Controlled" or "Sweep"... is there a command to list all allowed values?</div>
</div>
</div>
</body>
</html>