-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
127 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
__description__ = u'post EPICS PVs to read-only web page' | ||
__long_description__ = __description__ | ||
|
||
__version__ = u'2016.0425.0' | ||
__version__ = u'2016.0427.0' | ||
__release__ = __version__ | ||
__author__ = u'Pete R. Jemian' | ||
__email__ = u'[email protected]' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
<?xml version="1.0" ?> | ||
<?xml-stylesheet type="text/xsl" href="pvlist.xsl" ?> | ||
|
||
<!-- You can edit this file with a text editor --> | ||
|
||
<pvwatch version="1.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="local_schema pvlist.xsd"> | ||
<!-- (update version if format of XML file changes) --> | ||
|
||
<definition name="mne"> | ||
one-word mnemonic reference used in python and xslt code | ||
(mne should be unique for each EPICS_PV) | ||
</definition> | ||
<definition name="PV"> | ||
EPICS process variable name (must be used in only one EPICS_PV) | ||
</definition> | ||
<definition name="description"> | ||
useful text informative to others | ||
</definition> | ||
<definition name="display_format"> | ||
(optional, default="%s") PVs will be formatted for display with this string | ||
</definition> | ||
<definition name="_ignore_"> | ||
(optional, default="false") this PV is ignored if value is not "false" | ||
</definition> | ||
|
||
|
||
<EPICS_PV PV="morel:TOD" description="IOC current time" mne="tod"/> | ||
<EPICS_PV PV="morel:STARTTOD" description="IOC boot time" mne="starttod"/> | ||
<EPICS_PV PV="morel:UPTIME" description="time IOC running" mne="uptime"/> | ||
<EPICS_PV PV="morel:HOSTNAME" description="IOC host name" mne="hostname"/> | ||
<EPICS_PV PV="morel:ENGINEER" description="engineer" mne="engineer"/> | ||
|
||
<EPICS_PV PV="morel:m1.RBV" description="VDM_Stripe motor" mne="VDM_Stripe" display_format="%.3f"/> | ||
<EPICS_PV PV="morel:m1.VAL" description="VDM_Stripe motor target" mne="VDM_Stripe_VAL" display_format="%.3f"/> | ||
<EPICS_PV PV="morel:m1.DMOV" description="VDM_Stripe motor done moving" mne="VDM_Stripe_DMOV"/> | ||
<EPICS_PV PV="morel:m2.RBV" description="DCM_theta motor" mne="DCM_theta" display_format="%.6f"/> | ||
<EPICS_PV PV="morel:m2.VAL" description="DCM_theta motor target" mne="DCM_theta_VAL" display_format="%.6f"/> | ||
<EPICS_PV PV="morel:m2.DMOV" description="DCM_theta motor done moving" mne="DCM_theta_DMOV"/> | ||
|
||
<EPICS_PV PV="morel:alldone" description="all motors done moving" mne="motors_alldone"/> | ||
<EPICS_PV PV="morel:moving" description="number of motors moving" mne="motors_moving"/> | ||
|
||
</pvwatch> | ||
<?xml version="1.0" ?> | ||
<?xml-stylesheet type="text/xsl" href="pvlist.xsl" ?> | ||
|
||
<!-- You can edit this file with a text editor --> | ||
|
||
<pvwatch version="1.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="local_schema pvlist.xsd"> | ||
<!-- (update version if format of XML file changes) --> | ||
|
||
<definition name="mne"> | ||
one-word mnemonic reference used in python and xslt code | ||
(mne should be unique for each EPICS_PV) | ||
</definition> | ||
<definition name="PV"> | ||
EPICS process variable name (must be used in only one EPICS_PV) | ||
</definition> | ||
<definition name="description"> | ||
useful text informative to others | ||
</definition> | ||
<definition name="display_format"> | ||
(optional, default="%s") PVs will be formatted for display with this string | ||
</definition> | ||
<definition name="_ignore_"> | ||
(optional, default="false") this PV is ignored if value is not "false" | ||
</definition> | ||
|
||
|
||
<EPICS_PV PV="morel:TOD" description="IOC current time" mne="tod"/> | ||
<EPICS_PV PV="morel:STARTTOD" description="IOC boot time" mne="starttod"/> | ||
<EPICS_PV PV="morel:UPTIME" description="time IOC running" mne="uptime"/> | ||
<EPICS_PV PV="morel:HOSTNAME" description="IOC host name" mne="hostname"/> | ||
<EPICS_PV PV="morel:ENGINEER" description="engineer" mne="engineer"/> | ||
|
||
<EPICS_PV PV="morel:m1.RBV" description="VDM_Stripe motor" mne="VDM_Stripe" display_format="%.3f"/> | ||
<EPICS_PV PV="morel:m1.VAL" description="VDM_Stripe motor target" mne="VDM_Stripe_VAL" display_format="%.3f"/> | ||
<EPICS_PV PV="morel:m1.DMOV" description="VDM_Stripe motor done moving" mne="VDM_Stripe_DMOV"/> | ||
<EPICS_PV PV="morel:m2.RBV" description="DCM_theta motor" mne="DCM_theta" display_format="%.6f"/> | ||
<EPICS_PV PV="morel:m2.VAL" description="DCM_theta motor target" mne="DCM_theta_VAL" display_format="%.6f"/> | ||
<EPICS_PV PV="morel:m2.DMOV" description="DCM_theta motor done moving" mne="DCM_theta_DMOV"/> | ||
|
||
<EPICS_PV PV="morel:alldone" description="all motors done moving" mne="motors_alldone"/> | ||
<EPICS_PV PV="morel:moving" description="number of motors moving" mne="motors_moving"/> | ||
|
||
</pvwatch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,79 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
# Copyright (c) 2005-2015, UChicago Argonne, LLC. | ||
# See LICENSE file for details. | ||
--> | ||
<xsl:stylesheet | ||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
version="1.0" | ||
description="XSLT file to display the raw values of monitored EPICS PVs" | ||
> | ||
|
||
<xsl:template match="/"> | ||
<html> | ||
<head> | ||
<title>pvWebMonitor: EPICS process variables</title> | ||
<meta http-equiv="Pragma" content="no-cache"/> | ||
<meta http-equiv="Refresh" content="1200"/><xsl:comment> update page every 20 minutes </xsl:comment> | ||
</head> | ||
<body> | ||
<h1>pvWebMonitor: raw PV data from EPICS</h1> | ||
<p>written by: <xsl:value-of select="/pvWebMonitor/written_by"/></p> | ||
<p>date/time stamp: <xsl:value-of select="/pvWebMonitor/datetime"/></p> | ||
|
||
<hr /> | ||
|
||
<h2> EPICS process variables (sorted by id) </h2> | ||
<table border="2"> | ||
<tr style="background-color: grey; color: white;"> | ||
<th>name</th> | ||
<th><b>id</b></th> | ||
<th>description</th> | ||
<th>value</th> | ||
<th>units</th> | ||
<th>timestamp</th> | ||
</tr> | ||
<xsl:apply-templates select="pvWebMonitor/pv"/> | ||
</table> | ||
|
||
<hr /> | ||
<p> | ||
<small> | ||
data gathered by: <tt><xsl:value-of select="/pvWebMonitor/written_by"/></tt> | ||
</small> | ||
</p> | ||
<p> | ||
<small> | ||
report page: <tt>rawdata.xsl</tt> | ||
</small> | ||
</p> | ||
</body> | ||
</html> | ||
</xsl:template> | ||
|
||
<xsl:template match="pv"> | ||
<tr> | ||
<xsl:if test="position() mod 2=0"> | ||
<xsl:attribute name="bgcolor">Azure</xsl:attribute> | ||
</xsl:if> | ||
<td><xsl:value-of select="name"/></td> | ||
<td><xsl:value-of select="id"/></td> | ||
<td><xsl:value-of select="description"/></td> | ||
<td><xsl:value-of select="value"/></td> | ||
<td><xsl:value-of select="units"/></td> | ||
<td><xsl:value-of select="timestamp"/></td> | ||
</tr> | ||
</xsl:template> | ||
|
||
<xsl:template match="scan"> | ||
<tr> | ||
<xsl:if test="position() mod 2=0"> | ||
<xsl:attribute name="bgcolor">Azure</xsl:attribute> | ||
</xsl:if> | ||
<td><xsl:value-of select="title"/></td> | ||
<td><xsl:value-of select="@key"/></td> | ||
<td><xsl:value-of select="@specfile"/></td> | ||
</tr> | ||
</xsl:template> | ||
|
||
</xsl:stylesheet> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
# Copyright (c) 2005-2015, UChicago Argonne, LLC. | ||
# See LICENSE file for details. | ||
--> | ||
<xsl:stylesheet | ||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
version="1.0" | ||
description="XSLT file to display the raw values of monitored EPICS PVs" | ||
> | ||
|
||
<xsl:template match="/"> | ||
<html> | ||
<head> | ||
<title>pvWebMonitor: EPICS process variables</title> | ||
<meta http-equiv="Pragma" content="no-cache"/> | ||
<meta http-equiv="Refresh" content="1200"/><xsl:comment> update page every 20 minutes </xsl:comment> | ||
</head> | ||
<body> | ||
<h1>pvWebMonitor: raw PV data from EPICS</h1> | ||
<p>written by: <xsl:value-of select="/pvWebMonitor/written_by"/></p> | ||
<p>date/time stamp: <xsl:value-of select="/pvWebMonitor/datetime"/></p> | ||
|
||
<hr /> | ||
|
||
<h2> EPICS process variables (sorted by id) </h2> | ||
<table border="2"> | ||
<tr style="background-color: grey; color: white;"> | ||
<th>name</th> | ||
<th><b>id</b></th> | ||
<th>description</th> | ||
<th>value</th> | ||
<th>units</th> | ||
<th>timestamp</th> | ||
</tr> | ||
<xsl:apply-templates select="pvWebMonitor/pv"/> | ||
</table> | ||
|
||
<hr /> | ||
<p> | ||
<small> | ||
data gathered by: <tt><xsl:value-of select="/pvWebMonitor/written_by"/></tt> | ||
</small> | ||
</p> | ||
<p> | ||
<small> | ||
report page: <tt>rawdata.xsl</tt> | ||
</small> | ||
</p> | ||
</body> | ||
</html> | ||
</xsl:template> | ||
|
||
<xsl:template match="pv"> | ||
<tr> | ||
<xsl:if test="position() mod 2=0"> | ||
<xsl:attribute name="bgcolor">Azure</xsl:attribute> | ||
</xsl:if> | ||
<td><xsl:value-of select="name"/></td> | ||
<td><xsl:value-of select="id"/></td> | ||
<td><xsl:value-of select="description"/></td> | ||
<td><xsl:value-of select="value"/></td> | ||
<td><xsl:value-of select="units"/></td> | ||
<td><xsl:value-of select="timestamp"/></td> | ||
</tr> | ||
</xsl:template> | ||
|
||
<xsl:template match="scan"> | ||
<tr> | ||
<xsl:if test="position() mod 2=0"> | ||
<xsl:attribute name="bgcolor">Azure</xsl:attribute> | ||
</xsl:if> | ||
<td><xsl:value-of select="title"/></td> | ||
<td><xsl:value-of select="@key"/></td> | ||
<td><xsl:value-of select="@specfile"/></td> | ||
</tr> | ||
</xsl:template> | ||
|
||
</xsl:stylesheet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters