Changeset 178


Ignore:
Timestamp:
Jun 2, 2010 6:14:09 PM (14 years ago)
Author:
jemian
Message:

working to make code more robust against failed PV connections, pydoc call must be improved

Location:
wxmtxy/trunk
Files:
23 edited

Legend:

Unmodified
Added
Removed
  • wxmtxy/trunk/LICENSE

    r51 r178  
    1 Copyright (c) 2009 University of Chicago. All rights reserved.
     1Copyright (c) 2009-2010 University of Chicago. All rights reserved.
    22
    3 wxmtxy is distributed subject to the following license conditions:
     3wxmtxy, pvConnect, and menuLauncher are distributed subject to the following license conditions:
    44
    55 SOFTWARE LICENSE AGREEMENT
    6  Software:  wxmtxy including pvConnect
     6 Software:  wxmtxy, including pvConnect and menuLauncher
    77
    8  1. The "Software", below, refers to wxmtxy (in either source code, or
     8 1. The "Software", below, refers to wxmtxy, pvConnect,
     9    and menuLauncher (in either source code, or
    910    binary form and accompanying documentation). Each licensee is
    1011    addressed as "you" or "Licensee."
  • wxmtxy/trunk/Makefile

    r50 r178  
    22# Makefile
    33#*************************************************************************
    4 # Copyright (c) 2009 The University of Chicago, as Operator of Argonne
     4# Copyright (c) 2009-2010 The University of Chicago, as Operator of Argonne
    55#     National Laboratory.
    6 # Copyright (c) 2009 The Regents of the University of California, as
     6# Copyright (c) 2009-2010 The Regents of the University of California, as
    77#     Operator of Los Alamos National Laboratory.
    88# This file is distributed subject to a Software License Agreement found
     
    4545run ::
    4646        $(PYTHON) ./wxmtxy.py
     47
     48pydoc ::
     49        pydoc -w ./
  • wxmtxy/trunk/README

    r176 r178  
    99########### SVN repository information ###################
    1010
    11 wxmtxy provides EPICS support to users, allowing them to define a table of
    12 known positions for an X,Y positioner (motor) pair and provides a one-button
    13 click to drive the X,Y pair to a specific table setting. Also can record current
    14 position into a setting. Several sets of X,Y positioners can be configured.
    15 (Each set is separate.) In fact, the positioners do not have to be motors,
    16 but can be any type of EPICS PV that will accept a numeric value.
     11    *wxmtxy* (an EPICS GUI tool) provides support for an X,Y positioner
     12    (motor) pair by allowing users to define a table of known positions
     13    and providing a one-button click to drive a chosen X,Y pair to a specific
     14    table setting.  Also can record current position into a setting.
    1715
    18 wxmtxy is based on wxPython and relies on CaChannel to communicate with EPICS.
     16    Several sets of X,Y positioners can be configured.  (Each set is
     17    separate.)  In fact, the positioners do not have to be motors,
     18    but can be any type of EPICS PV that will accept a numeric value.
    1919
    20 In the Graphical User Interface (GUI), tooltips are provided for most items.
    21 Moving and pausing the mouse over a widget (GUI component such as a button
    22 or a label) will cause a terse description of that widget to be displayed. Moving
    23 the mouse away will cause that tooltip to disappear.
    2420
    25 For more help, explanations are provided in the HTML pages.
     21    wxmtxy is based on wxPython and relies on CaChannel to communicate
     22    with EPICS.
     23   
     24    In the Graphical User Interface (GUI), tooltips are provided for
     25    most items.  Moving and pausing the mouse over a widget (GUI
     26    component such as a button or a label) will cause a terse description
     27    of that widget to be displayed. Moving the mouse away will cause that
     28    tooltip to disappear.
     29   
     30    For more help, explanations are provided in the HTML pages.
  • wxmtxy/trunk/example.html

    r51 r178  
    2626                                                <br/><b>version: 0.4</b>
    2727                                        </td>
    28                                         <td valign="top"><img src="graphics/logo.png" alt="wxmtxy logo"/></td>
     28                                        <td valign="top"><img
     29                                        src="graphics/logo.png" alt="wxmtxy logo"/></td>
    2930                                </tr>
    3031                        </tbody>
     
    4142                        <li>
    4243                                First, start the program.  From the Linux/Solaris command line, type:
    43                                 <br/><code>/APSshare/bin/python ~/bin/wxmtxy/wxmtxy.py &amp;</code>
    44                                 <br/>The wxmtxy window should appear.
    45                                 <br/><a href="graphics/fig1.png"><img src="graphics/fig1.png" alt="Figure 1" width="200"/></a> 
     44                                <pre>/APSshare/bin/python ~/bin/wxmtxy/wxmtxy.py &amp;</pre>
     45                               
     46                                <p>The wxmtxy window should appear.</p>
     47                               
     48                                <p>
     49                                <a href="graphics/fig1.png">
     50                                <img src="graphics/fig1.png" alt="Figure 1"/></a>
     51                                </p> 
    4652                        </li>
    4753                       
     
    5157                                Mouse to the <em>Page</em> menu and select the item
    5258                                <em>EPICS configuration</em>.
    53                                 <br/><a href="graphics/fig2.png"><img src="graphics/fig2.png" alt="Figure 2" width="200"/></a>
     59                                <br/>
     60                               
     61                                <p>
     62                                <a href="graphics/fig2.png"><img
     63                                src="graphics/fig2.png" alt="Figure 2"/></a>
     64                                </p>
    5465                        </li>
    5566                       
     
    6475                                changes back to the default values or <em>Clear X</em> or <em>Clear Y</em>
    6576                                to clear all PV names and checkboxes from either of the two axes.
    66                                 <br/><a href="graphics/fig3.png"><img src="graphics/fig3.png" alt="Figure 3" width="200"/></a>
     77                                <br/>
     78                               
     79                                <p>
     80                                <a href="graphics/fig3.png"><img
     81                                src="graphics/fig3.png" alt="Figure 3"/></a>
     82                                </p>
    6783
    6884                                <!-- Perhaps this note can be moved to Theory of Operation section? -->
    69                                 <br/>Note:  The <em>EPICS configuration</em> window will change the background
     85                                <p>Note:  The <em>EPICS configuration</em> window will change the background
    7086                                color on each PV field, depending on whether or not the given PV name has been
    7187                                identified on the local EPICS network.  Pink indicates that the PV name has not
     
    7389                                <em>Enter</em> key on the keyboard while a particular PV field is selected, wxmtxy
    7490                                will try to locate the named PV on the local EPICS network.
    75                                 <br/>Note: The <tt>VAL</tt> field handles the <em>Enter</em> key differently than the
     91                                </p>
     92                               
     93                                <p>
     94                                Note: The <tt>VAL</tt> field handles the <em>Enter</em> key differently than the
    7695                                other fields.  First, if the <tt>isMotorRecord</tt> checkbox is checked, then the
    7796                                PV names for the other fields of this axis (with empty name fields)
    7897                                will be filled in automatically.
     98                                </p>
     99                               
    79100                                Then the software will attempt to locate all fields of this axis.
    80101                        </li>
     
    87108                                by each EPICS motor record.  The description and engineering units
    88109                                are also shown.  Compare with the following figure as well.
    89                                 <br/><a href="graphics/fig4.png"><img src="graphics/fig4.png" alt="Figure 4" width="200"/></a>
     110                                <br/>
     111                               
     112                                <p>
     113                                <a href="graphics/fig4.png"><img
     114                                src="graphics/fig4.png" alt="Figure 4"/></a>
     115                                </p>
    90116                        </li>
    91117                       
     
    93119                                Compare the previous figure with the standard motor control panel which includes
    94120                                both of these motors (plus one other in between).
    95                                 <br/><a href="graphics/fig5.png"><img src="graphics/fig5.png" alt="Figure 5" width="200"/></a>
     121                                <br/>
     122                               
     123                                <p>
     124                                <a href="graphics/fig5.png"><img
     125                                src="graphics/fig5.png" alt="Figure 5"/></a>
     126                                </p>
    96127                        </li>
    97128                       
     
    100131                                and type <tt>starting values</tt>.  (No need to press the <em>Enter</em> key.
    101132                                It will be ignored so there is no harm either.)
    102                                 <br/><a href="graphics/fig6.png"><img src="graphics/fig6.png" alt="Figure 6" width="200"/></a>
     133                                <br/>
     134                               
     135                                <p>
     136                                <a href="graphics/fig6.png"><img
     137                                src="graphics/fig6.png" alt="Figure 6"/></a>
     138                                </p>
    103139                        </li>
    104140                       
     
    106142                                Then click the <em>Set</em> button (just right of the description) to
    107143                                copy the current readback values for each axis to this row.
    108                                 <br/><a href="graphics/fig7.png"><img src="graphics/fig7.png" alt="Figure 7" width="200"/></a>
     144                                <br/>
     145                               
     146                                <p>
     147                                <a href="graphics/fig7.png"><img
     148                                src="graphics/fig7.png" alt="Figure 7" /></a>
     149                                </p>
    109150                        </li>
    110151                       
     
    112153                                Make a new row by selecting the <em>Page</em> menu, <em>Create new row</em> item.
    113154                                Note that Ctrl+r is a keyboard shortcut for the same menu selection.
    114                                 <br/><a href="graphics/fig8.png"><img src="graphics/fig8.png" alt="Figure 8" width="200"/></a>
     155                                <br/>
     156                               
     157                                <p>
     158                                <a href="graphics/fig8.png"><img
     159                                src="graphics/fig8.png" alt="Figure 8"/></a>
     160                                </p>
    115161                        </li>
    116162                       
    117163                        <li> 
    118164                                The next figure shows that a new row has been created under the current tab selection.
    119                                 <br/><a href="graphics/fig9.png"><img src="graphics/fig9.png" alt="Figure 9" width="200"/></a>
     165                                <br/>
     166                               
     167                                <p>
     168                                <a href="graphics/fig9.png"><img
     169                                src="graphics/fig9.png" alt="Figure 9" /></a>
     170                                </p>
    120171                        </li>
    121172                       
     
    124175                                increment from the starting values.  You do the math particular for your
    125176                                selected motor axes.  Make another row (Ctrl+r) and enter more values by typing.
    126                                 <br/><a href="graphics/fig10.png"><img src="graphics/fig10.png" alt="Figure 10" width="200"/></a>
     177                                <br/>
     178                               
     179                                <p>
     180                                <a href="graphics/fig10.png"><img
     181                                src="graphics/fig10.png" alt="Figure 10" /></a>
     182                                </p>
    127183                        </li>
    128184                       
     
    132188                                a description autmoatically.  The default description is the date and time
    133189                                that the <em>Set</em> button was pressed.
    134                                 <br/><a href="graphics/fig11.png"><img src="graphics/fig11.png" alt="Figure 11" width="200"/></a>
     190                                <br/>
     191                               
     192                                <p>
     193                                <a href="graphics/fig11.png"><img
     194                                src="graphics/fig11.png" alt="Figure 11"/></a>
     195                                </p>
    135196                        </li>
    136197                       
     
    139200                                button (far left of the row; the one with the <b>X</b>).  You will
    140201                                be prompted for confirmation, as shown.
    141                                 <br/><a href="graphics/fig12.png"><img src="graphics/fig12.png" alt="Figure 12" width="200"/></a>
     202                                <br/>
     203                               
     204                                <p>
     205                                <a href="graphics/fig12.png"><img
     206                                src="graphics/fig12.png" alt="Figure 12"/></a>
     207                                </p>
    142208                        </li>
    143209                       
     
    145211                                Time to save the current settings to a file.  Choose the <em>File</em> menu,
    146212                                <em>Save As ...</em> item. 
    147                                 <br/><a href="graphics/fig13.png"><img src="graphics/fig13.png" alt="Figure 13" width="200"/></a>
     213                                <br/>
     214                               
     215                                <p>
     216                                <a href="graphics/fig13.png"><img
     217                                src="graphics/fig13.png" alt="Figure 13"/></a>
     218                                </p>
    148219                        </li>
    149220                       
     
    152223                                to save your settings, enter a name <em>with the extension <tt>.XML</tt></em>
    153224                                and finish your task.
    154                                 <br/><a href="graphics/fig14.png"><img src="graphics/fig14.png" alt="Figure 14" width="200"/></a>
     225                                <br/>
     226                               
     227                                <p>
     228                                <a href="graphics/fig14.png"><img
     229                                src="graphics/fig14.png" alt="Figure 14"/></a>
     230                                </p>
    155231                        </li>
    156232                       
     
    160236                                you can identify the various pieces of information which have been
    161237                                entered so far.
    162                                 <br/><a href="graphics/fig15.png"><img src="graphics/fig15.png" alt="Figure 15" width="200"/></a>
     238                                <br/>
     239                               
     240                                <p>
     241                                <a href="graphics/fig15.png"><img
     242                                src="graphics/fig15.png" alt="Figure 15"/></a>
     243                                </p>
    163244                        </li>
    164245                       
     
    166247                                Set the page title for this XY pair of positioners by choosing the
    167248                                <em>Page</em> menu, <em>Change X,Y pair title</em> item.
    168                                 <br/><a href="graphics/fig16.png"><img src="graphics/fig16.png" alt="Figure 16" width="200"/></a>
     249                                <br/>
     250                               
     251                                <p>
     252                                <a href="graphics/fig16.png"><img
     253                                src="graphics/fig16.png" alt="Figure 16"/></a>
     254                                </p>
    169255                        </li>
    170256                       
     
    172258                                Set the title for the selected tab by choosing the
    173259                                <em>Page</em> menu, <em>Change tab title</em> item.
    174                                 <br/><a href="graphics/fig17.png"><img src="graphics/fig17.png" alt="Figure 17" width="200"/></a>
     260                                <br/>
     261                               
     262                                <p>
     263                                <a href="graphics/fig17.png"><img
     264                                src="graphics/fig17.png" alt="Figure 17"/></a>
     265                                </p>
    175266                        </li>
    176267                       
     
    179270                                <em>File</em> menu, <em>Save</em> item.  Inspect the settings file
    180271                                in a text editor.
    181                                 <br/><a href="graphics/fig18.png"><img src="graphics/fig18.png" alt="Figure 18" width="200"/></a> 
     272                                <br/>
     273                               
     274                                <p>
     275                                <a href="graphics/fig18.png"><img
     276                                src="graphics/fig18.png" alt="Figure 18"/></a>
     277                                </p> 
    182278                        </li>
    183279                </ol>
     
    186282                <hr />
    187283               
    188                 The wxmtxy application and related files are copyyright (c) 2009.
     284                The wxmtxy application and related files are copyyright (c) 2009-2010.
    189285                <pre>
    190286#*************************************************************************
    191 # Copyright (c) 2009 The University of Chicago, as Operator of Argonne
     287# Copyright (c) 2009-2010 The University of Chicago, as Operator of Argonne
    192288#     National Laboratory.
    193 # Copyright (c) 2009 The Regents of the University of California, as
     289# Copyright (c) 2009-2010 The Regents of the University of California, as
    194290#     Operator of Los Alamos National Laboratory.
    195291# This file is distributed subject to a Software License Agreement found
  • wxmtxy/trunk/index.html

    r51 r178  
    2424                                                <h2>A GUI tool for EPICS</h2>
    2525                                                <br/><b>author: Pete R. Jemian (jemian@anl.gov)</b>
    26                                                 <br/><b>version: 0.4</b>
     26                                                <br/><b>version: 0.5</b>
    2727                                        </td>
    28                                         <td valign="top"><img src="graphics/logo.png" alt="wxmtxy logo"/></td>
     28                                        <td valign="top"><img
     29                                        src="graphics/logo.png" alt="wxmtxy logo"/></td>
    2930                                </tr>
    3031                        </tbody>
     
    9495                changes back to the default values or <em>Clear X</em> or <em>Clear Y</em>
    9596                to clear all PV names and checkboxes from either of the two axes.
    96                 <br/><a href="graphics/fig3.png"><img src="graphics/fig3.png" alt="Figure 3" width="200"/></a>
     97                <br/>
     98               
     99                <p>
     100                <a href="graphics/fig3.png"><img
     101                src="graphics/fig3.png" alt="Figure 3"/></a>
     102                </p>
    97103
    98104                <h3>Create a new Tab</h3>
     
    112118                To save the current settings to a file, select the <em>File</em> menu,
    113119                <em>Save As ...</em> item. 
    114                 <br/><a href="graphics/fig13.png"><img src="graphics/fig13.png" alt="Figure 13" width="200"/></a>
    115                
    116                 <br/>A save file window will appear.  Navigate to a directory
     120                <br/>
     121               
     122                <p>
     123                <a href="graphics/fig13.png"><img
     124                src="graphics/fig13.png" alt="Figure 13"/></a>
     125                </p>
     126               
     127                <p>A save file window will appear.  Navigate to a directory
    117128                to save your settings, enter a name <em>with the extension <tt>.XML</tt></em>
    118129                and finish your task.
    119                 <br/><a href="graphics/fig14.png"><img src="graphics/fig14.png" alt="Figure 14" width="200"/></a>
     130                </p>
     131               
     132                <p>
     133                <a href="graphics/fig14.png"><img
     134                src="graphics/fig14.png" alt="Figure 14"/></a>
     135                </p>
    120136
    121137                <h2>Definitions</h2>
     
    209225                    <p>The "Text positions file" is a plain text file and can be
    210226                prepared with any text editor.  The file describes a set
    211                 of positions to be loaded into a Tab of the wxmyxy application.
     227                of positions to be loaded into a Tab of the wxmtxy application.
    212228                It contains an arbitrary number of rows.  Each row contains
    213229                three values, separated by tabs.
     
    373389<pre>
    374390#*************************************************************************
    375 # Copyright (c) 2009 The University of Chicago, as Operator of Argonne
     391# Copyright (c) 2009-2010 The University of Chicago, as Operator of Argonne
    376392#     National Laboratory.
    377 # Copyright (c) 2009 The Regents of the University of California, as
     393# Copyright (c) 2009-2010 The Regents of the University of California, as
    378394#     Operator of Los Alamos National Laboratory.
    379395# This file is distributed subject to a Software License Agreement found
  • wxmtxy/trunk/menuLauncher.py

    r177 r178  
    33
    44#*************************************************************************
    5 # Copyright (c) 2009 The University of Chicago, as Operator of Argonne
     5# Copyright (c) 2009-2010 The University of Chicago, as Operator of Argonne
    66#     National Laboratory.
    7 # Copyright (c) 2009 The Regents of the University of California, as
     7# Copyright (c) 2009-2010 The Regents of the University of California, as
    88#     Operator of Los Alamos National Laboratory.
    99# This file is distributed subject to a Software License Agreement found
     
    3737            ("xman", "X11 man pages", "xman -bothshown"),
    3838            ("xeyes", "Here's looking at you, kid!", "xeyes"),
     39            ("wxmtxy", "motor tool", "/APSshare/bin/python ./wxmtxy.py"),
    3940            ("separator", ),
    4041            ("xclock", "conventional analog clock", "xclock")
  • wxmtxy/trunk/pvConnect.html

    r51 r178  
    99<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>pvConnect</strong></big></big></font></td
    1010><td align=right valign=bottom
    11 ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:///C|/documents%20and%20settings/pete/my%20documents/eclipse/workspace/wxmtxy/trunk/pvconnect.py">c:\documents and settings\pete\my documents\eclipse\workspace\wxmtxy\trunk\pvconnect.py</a></font></td></tr></table>
     11><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/oxygen18/JEMIAN/Documents/eclipse/usaxs/wxmtxy/trunk/pvConnect.py">/home/oxygen18/JEMIAN/Documents/eclipse/usaxs/wxmtxy/trunk/pvConnect.py</a></font></td></tr></table>
    1212    <p><tt>simplified&nbsp;connections&nbsp;to&nbsp;an&nbsp;EPICS&nbsp;PV&nbsp;using&nbsp;CaChannel<br>
    1313&nbsp;<br>
     
    4747@version:&nbsp;<br>
    4848###########&nbsp;SVN&nbsp;repository&nbsp;information&nbsp;###################<br>
    49 #&nbsp;$Date:&nbsp;2009-05-05&nbsp;14:05:50&nbsp;-0500&nbsp;(Tue,&nbsp;05&nbsp;May&nbsp;2009)&nbsp;$<br>
     49#&nbsp;$Date:&nbsp;2009-12-03&nbsp;17:39:05&nbsp;-0600&nbsp;(Thu,&nbsp;03&nbsp;Dec&nbsp;2009)&nbsp;$<br>
    5050#&nbsp;$Author:&nbsp;jemian&nbsp;$<br>
    51 #&nbsp;$Revision:&nbsp;50&nbsp;$<br>
     51#&nbsp;$Revision:&nbsp;100&nbsp;$<br>
    5252#&nbsp;$URL:&nbsp;https://subversion.xor.aps.anl.gov/bcdaext/wxmtxy/trunk/pvConnect.py&nbsp;$<br>
    53 #&nbsp;$Id:&nbsp;pvConnect.py&nbsp;50&nbsp;2009-05-05&nbsp;19:05:50Z&nbsp;jemian&nbsp;$<br>
     53#&nbsp;$Id:&nbsp;pvConnect.py&nbsp;100&nbsp;2009-12-03&nbsp;23:39:05Z&nbsp;jemian&nbsp;$<br>
    5454###########&nbsp;SVN&nbsp;repository&nbsp;information&nbsp;###################</tt></p>
    5555<p>
     
    6262<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="sys.html">sys</a><br>
    6363</td><td width="25%" valign=top><a href="time.html">time</a><br>
    64 </td><td width="25%" valign=top><a href="wx.html">wx</a><br>
    65 </td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
     64</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
    6665<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
    6766<tr bgcolor="#ee77aa">
     
    211210<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
    212211<td width="100%"><strong>IMPORTED_CACHANNEL</strong> = False<br>
    213 <strong>IMPORTED_WX</strong> = True</td></tr></table>
     212<strong>IMPORTED_WX</strong> = False</td></tr></table>
    214213</body></html>
  • wxmtxy/trunk/pvConnect.py

    r100 r178  
    22
    33#*************************************************************************
    4 # Copyright (c) 2009 The University of Chicago, as Operator of Argonne
     4# Copyright (c) 2009-2010 The University of Chicago, as Operator of Argonne
    55#     National Laboratory.
    6 # Copyright (c) 2009 The Regents of the University of California, as
     6# Copyright (c) 2009-2010 The Regents of the University of California, as
    77#     Operator of Los Alamos National Laboratory.
    88# This file is distributed subject to a Software License Agreement found
  • wxmtxy/trunk/setup.html

    r51 r178  
    99<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>setup</strong></big></big></font></td
    1010><td align=right valign=bottom
    11 ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:///C|/documents%20and%20settings/pete/my%20documents/eclipse/workspace/wxmtxy/trunk/setup.py">c:\documents and settings\pete\my documents\eclipse\workspace\wxmtxy\trunk\setup.py</a></font></td></tr></table>
     11><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/oxygen18/JEMIAN/Documents/eclipse/usaxs/wxmtxy/trunk/setup.py">/home/oxygen18/JEMIAN/Documents/eclipse/usaxs/wxmtxy/trunk/setup.py</a></font></td></tr></table>
    1212    <p><tt>configuration&nbsp;for&nbsp;the&nbsp;distutils&nbsp;installation&nbsp;method<br>
    1313&nbsp;<br>
     
    3636</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
    3737<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
    38 <tr bgcolor="#ee77aa">
    39 <td colspan=3 valign=bottom>&nbsp;<br>
    40 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
    41    
    42 <tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
    43 <td width="100%"><dl>
    44 <dt><font face="helvetica, arial"><a href="setup.html#Target">Target</a>
    45 </font></dt></dl>
    46  <p>
    47 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
    48 <tr bgcolor="#ffc8d8">
    49 <td colspan=3 valign=bottom>&nbsp;<br>
    50 <font color="#000000" face="helvetica, arial"><a name="Target">class <strong>Target</strong></a></font></td></tr>
    51    
    52 <tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
    53 <td width="100%">Methods defined here:<br>
    54 <dl><dt><a name="Target-__init__"><strong>__init__</strong></a>(self, **kw)</dt></dl>
    55 
    56 </td></tr></table></td></tr></table><p>
    57 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
    5838<tr bgcolor="#55aa55">
    5939<td colspan=3 valign=bottom>&nbsp;<br>
  • wxmtxy/trunk/setup.py

    r50 r178  
    22
    33#*************************************************************************
    4 # Copyright (c) 2009 The University of Chicago, as Operator of Argonne
     4# Copyright (c) 2009-2010 The University of Chicago, as Operator of Argonne
    55#     National Laboratory.
    6 # Copyright (c) 2009 The Regents of the University of California, as
     6# Copyright (c) 2009-2010 The Regents of the University of California, as
    77#     Operator of Los Alamos National Laboratory.
    88# This file is distributed subject to a Software License Agreement found
  • wxmtxy/trunk/wxmtxy.py

    r176 r178  
    33
    44#*************************************************************************
    5 # Copyright (c) 2009 The University of Chicago, as Operator of Argonne
     5# Copyright (c) 2009-2010 The University of Chicago, as Operator of Argonne
    66#     National Laboratory.
    7 # Copyright (c) 2009 The Regents of the University of California, as
     7# Copyright (c) 2009-2010 The Regents of the University of California, as
    88#     Operator of Los Alamos National Laboratory.
    99# This file is distributed subject to a Software License Agreement found
     
    2525README
    2626
    27 wxmtxy provides EPICS support to users, allowing them to define a table of
    28 known positions for an X,Y positioner (motor) pair and provides a one-button
    29 click to drive the X,Y pair to a specific table setting. Also can record current
    30 position into a setting. Several sets of X,Y positioners can be configured.
    31 (Each set is separate.) In fact, the positioners do not have to be motors,
    32 but can be any type of EPICS PV that will accept a numeric value.
     27    *wxmtxy* (an EPICS GUI tool) provides support for an X,Y positioner
     28    (motor) pair by allowing users to define a table of known positions
     29    and providing a one-button click to drive a chosen X,Y pair to a specific
     30    table setting.  Also can record current position into a setting.
    3331
    34 wxmtxy is based on wxPython and relies on CaChannel to communicate with EPICS.
     32    Several sets of X,Y positioners can be configured.  (Each set is
     33    separate.)  In fact, the positioners do not have to be motors,
     34    but can be any type of EPICS PV that will accept a numeric value.
    3535
    36 In the Graphical User Interface (GUI), tooltips are provided for most items.
    37 Moving and pausing the mouse over a widget (GUI component such as a button
    38 or a label) will cause a terse description of that widget to be displayed. Moving
    39 the mouse away will cause that tooltip to disappear.
    4036
    41 For more help, explanations are provided in the HTML pages.
     37    wxmtxy is based on wxPython and relies on CaChannel to communicate
     38    with EPICS.
     39   
     40    In the Graphical User Interface (GUI), tooltips are provided for
     41    most items.  Moving and pausing the mouse over a widget (GUI
     42    component such as a button or a label) will cause a terse description
     43    of that widget to be displayed. Moving the mouse away will cause that
     44    tooltip to disappear.
     45   
     46    For more help, explanations are provided in the HTML pages.
    4247
    4348----
     
    95100    if len(sys.argv) == 2:
    96101        settingsFile = sys.argv[1]
     102        # TODO: What if PVs in settingsFile are not available at startup?
    97103    wxmtxy_root.root(None, settingsFile).Show()
    98104    capoll_timer = None
  • wxmtxy/trunk/wxmtxy_axis.html

    r51 r178  
    99<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>wxmtxy_axis</strong></big></big></font></td
    1010><td align=right valign=bottom
    11 ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:///C|/documents%20and%20settings/pete/my%20documents/eclipse/workspace/wxmtxy/trunk/wxmtxy_axis.py">c:\documents and settings\pete\my documents\eclipse\workspace\wxmtxy\trunk\wxmtxy_axis.py</a></font></td></tr></table>
    12     <p><tt>EPICS&nbsp;PVs&nbsp;and&nbsp;connections&nbsp;for&nbsp;one&nbsp;axis<br>
    13 &nbsp;<br>
    14 @version:&nbsp;<br>
    15 ###########&nbsp;SVN&nbsp;repository&nbsp;information&nbsp;###################<br>
    16 #&nbsp;$Date:&nbsp;2009-05-05&nbsp;14:05:50&nbsp;-0500&nbsp;(Tue,&nbsp;05&nbsp;May&nbsp;2009)&nbsp;$<br>
    17 #&nbsp;$Author:&nbsp;jemian&nbsp;$<br>
    18 #&nbsp;$Revision:&nbsp;50&nbsp;$<br>
    19 #&nbsp;$URL:&nbsp;https://subversion.xor.aps.anl.gov/bcdaext/wxmtxy/trunk/wxmtxy_axis.py&nbsp;$<br>
    20 #&nbsp;$Id:&nbsp;wxmtxy_axis.py&nbsp;50&nbsp;2009-05-05&nbsp;19:05:50Z&nbsp;jemian&nbsp;$<br>
    21 ###########&nbsp;SVN&nbsp;repository&nbsp;information&nbsp;###################</tt></p>
     11><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/oxygen18/JEMIAN/Documents/eclipse/usaxs/wxmtxy/trunk/wxmtxy_axis.py">/home/oxygen18/JEMIAN/Documents/eclipse/usaxs/wxmtxy/trunk/wxmtxy_axis.py</a></font></td></tr></table>
     12    <p></p>
    2213<p>
    2314<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  • wxmtxy/trunk/wxmtxy_axis.py

    r50 r178  
    11#!/usr/bin/env python
     2from compiler.ast import TryExcept
    23
    34#*************************************************************************
    4 # Copyright (c) 2009 The University of Chicago, as Operator of Argonne
     5# Copyright (c) 2009-2010 The University of Chicago, as Operator of Argonne
    56#     National Laboratory.
    6 # Copyright (c) 2009 The Regents of the University of California, as
     7# Copyright (c) 2009-2010 The Regents of the University of California, as
    78#     Operator of Los Alamos National Laboratory.
    89# This file is distributed subject to a Software License Agreement found
     
    4647        '''Try to initiate EPICS connection with named PVs
    4748            @return: [Boolean] if all axes connected'''
     49        failures = 0
    4850        for field in field_list:
     51            # TODO: Can these connections be done together?
    4952            ch = self.db[field].GetConnection()
    5053            if ch != None:
    51                 ch.connectw()
    52                 ch.monitor()
     54                try:
     55                    ch.connectw()
     56                    ch.monitor()
     57                except:
     58                    failures += 1
     59                    print "Could not connect with PV: " + self.db[field].pv
     60        return failures > 0
    5361
    5462    def Disconnect(self):
  • wxmtxy/trunk/wxmtxy_htmlview.py

    r50 r178  
    33
    44#*************************************************************************
    5 # Copyright (c) 2009 The University of Chicago, as Operator of Argonne
     5# Copyright (c) 2009-2010 The University of Chicago, as Operator of Argonne
    66#     National Laboratory.
    7 # Copyright (c) 2009 The Regents of the University of California, as
     7# Copyright (c) 2009-2010 The Regents of the University of California, as
    88#     Operator of Los Alamos National Laboratory.
    99# This file is distributed subject to a Software License Agreement found
  • wxmtxy/trunk/wxmtxy_pair.py

    r50 r178  
    33
    44#*************************************************************************
    5 # Copyright (c) 2009 The University of Chicago, as Operator of Argonne
     5# Copyright (c) 2009-2010 The University of Chicago, as Operator of Argonne
    66#     National Laboratory.
    7 # Copyright (c) 2009 The Regents of the University of California, as
     7# Copyright (c) 2009-2010 The Regents of the University of California, as
    88#     Operator of Los Alamos National Laboratory.
    99# This file is distributed subject to a Software License Agreement found
     
    3030import wxmtxy_axis
    3131import wx.lib.scrolledpanel
    32 import pvConnect
     32#import pvConnect
    3333import copy
    3434import pprint
  • wxmtxy/trunk/wxmtxy_pvsetup.py

    r50 r178  
    33
    44#*************************************************************************
    5 # Copyright (c) 2009 The University of Chicago, as Operator of Argonne
     5# Copyright (c) 2009-2010 The University of Chicago, as Operator of Argonne
    66#     National Laboratory.
    7 # Copyright (c) 2009 The Regents of the University of California, as
     7# Copyright (c) 2009-2010 The Regents of the University of California, as
    88#     Operator of Los Alamos National Laboratory.
    99# This file is distributed subject to a Software License Agreement found
  • wxmtxy/trunk/wxmtxy_root.py

    r54 r178  
    33
    44#*************************************************************************
    5 # Copyright (c) 2009 The University of Chicago, as Operator of Argonne
     5# Copyright (c) 2009-2010 The University of Chicago, as Operator of Argonne
    66#     National Laboratory.
    7 # Copyright (c) 2009 The Regents of the University of California, as
     7# Copyright (c) 2009-2010 The Regents of the University of California, as
    88#     Operator of Los Alamos National Laboratory.
    99# This file is distributed subject to a Software License Agreement found
  • wxmtxy/trunk/wxmtxy_row.py

    r51 r178  
    22
    33#*************************************************************************
    4 # Copyright (c) 2009 The University of Chicago, as Operator of Argonne
     4# Copyright (c) 2009-2010 The University of Chicago, as Operator of Argonne
    55#     National Laboratory.
    6 # Copyright (c) 2009 The Regents of the University of California, as
     6# Copyright (c) 2009-2010 The Regents of the University of California, as
    77#     Operator of Los Alamos National Laboratory.
    88# This file is distributed subject to a Software License Agreement found
  • wxmtxy/trunk/wxmtxy_tab.py

    r50 r178  
    22
    33#*************************************************************************
    4 # Copyright (c) 2009 The University of Chicago, as Operator of Argonne
     4# Copyright (c) 2009-2010 The University of Chicago, as Operator of Argonne
    55#     National Laboratory.
    6 # Copyright (c) 2009 The Regents of the University of California, as
     6# Copyright (c) 2009-2010 The Regents of the University of California, as
    77#     Operator of Los Alamos National Laboratory.
    88# This file is distributed subject to a Software License Agreement found
  • wxmtxy/trunk/wxmtxy_version.html

    r51 r178  
    77<tr bgcolor="#7799ee">
    88<td valign=bottom>&nbsp;<br>
    9 <font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>wxmtxy_version</strong></big></big> (version 0.4)</font></td
     9<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>wxmtxy_version</strong></big></big> (version 0.5)</font></td
    1010><td align=right valign=bottom
    11 ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:///C|/documents%20and%20settings/pete/my%20documents/eclipse/workspace/wxmtxy/trunk/wxmtxy_version.py">c:\documents and settings\pete\my documents\eclipse\workspace\wxmtxy\trunk\wxmtxy_version.py</a></font></td></tr></table>
     11><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/oxygen18/JEMIAN/Documents/eclipse/usaxs/wxmtxy/trunk/wxmtxy_version.py">/home/oxygen18/JEMIAN/Documents/eclipse/usaxs/wxmtxy/trunk/wxmtxy_version.py</a></font></td></tr></table>
    1212    <p><tt>#&nbsp;full&nbsp;contents&nbsp;of&nbsp;__file_license__&nbsp;appear&nbsp;at&nbsp;the&nbsp;top&nbsp;of&nbsp;each&nbsp;file</tt></p>
    1313<p>
     
    2121<strong>__author_email__</strong> = 'jemian@anl.gov'<br>
    2222<strong>__company_name__</strong> = 'Advanced Photon Source'<br>
    23 <strong>__copyright__</strong> = '(c) 2009'<br>
    24 <strong>__documentation__</strong> = '<font color="#c040c0">\n</font>    *wxmtxy* provides EPICS support to users, a...pe of EPICS PV that will accept a numeric value.<font color="#c040c0">\n</font>'<br>
     23<strong>__copyright__</strong> = '(c) 2009, 2010'<br>
     24<strong>__documentation__</strong> = '<font color="#c040c0">\n</font>    *wxmtxy* (an EPICS GUI tool) provides suppo...pe of EPICS PV that will accept a numeric value.<font color="#c040c0">\n</font>'<br>
    2525<strong>__file_license__</strong> = '<font color="#c040c0">\n</font>#**********************************************...************************************************<font color="#c040c0">\n</font>'<br>
    26 <strong>__license__</strong> = 'APS EPICS extensions software license'<br>
     26<strong>__license__</strong> = 'Copyright (c) 2009-2010 University of Chicago. A... OF THE<font color="#c040c0">\n</font>    POSSIBILITY OF SUCH LOSS OR DAMAGES.<font color="#c040c0">\n</font>'<br>
    2727<strong>__long_description__</strong> = 'wxmtxy is an EPICS GUI tool to assist users in routine operation of positioning devices'<br>
    2828<strong>__main_script__</strong> = 'wxmtxy.py'<br>
     
    3232<strong>__url__</strong> = 'https://subversion.xor.aps.anl.gov/trac/bcdaext/wiki/wxmtxy'<br>
    3333<strong>__urlsvn__</strong> = 'https://subversion.xor.aps.anl.gov/bcdaext/wxmtxy'<br>
    34 <strong>__version__</strong> = '0.4'</td></tr></table><p>
     34<strong>__version__</strong> = '0.5'<br>
     35<strong>fp</strong> = &lt;closed file 'LICENSE', mode 'r'&gt;</td></tr></table><p>
    3536<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
    3637<tr bgcolor="#7799ee">
  • wxmtxy/trunk/wxmtxy_version.py

    r51 r178  
    44__file_license__ = '''
    55#*************************************************************************
    6 # Copyright (c) 2009 The University of Chicago, as Operator of Argonne
     6# Copyright (c) 2009-2010 The University of Chicago, as Operator of Argonne
    77#     National Laboratory.
    8 # Copyright (c) 2009 The Regents of the University of California, as
     8# Copyright (c) 2009-2010 The Regents of the University of California, as
    99#     Operator of Los Alamos National Laboratory.
    1010# This file is distributed subject to a Software License Agreement found
     
    2929__author_email__ = "jemian@anl.gov"
    3030__company_name__ = "Advanced Photon Source"
    31 __version__ = "0.4"
    32 __copyright__ = "(c) 2009"
    33 __license__ = "APS EPICS extensions software license"
     31__version__ = "0.5"
     32__copyright__ = "(c) 2009, 2010"
     33  # license text from file: LICENSE
     34__license__ = '''
     35APS EPICS extensions software license.  See file LICENSE for details.
     36'''
     37fp = open('LICENSE', 'r')
     38__license__ = fp.read()
     39fp.close()
    3440__long_description__ = '''wxmtxy is an EPICS GUI tool to assist users in routine operation of positioning devices'''
    3541__main_script__ = "wxmtxy.py"
     
    4046__svndesc__ = 'wxmtxy SVN repo page'
    4147__documentation__ = '''
    42     *wxmtxy* provides EPICS support to users, allowing them
    43     to define a table of known positions for an X,Y positioner (motor) pair
    44     and provides a one-button click to drive the X,Y pair to a specific
     48    *wxmtxy* (an EPICS GUI tool) provides support for an X,Y positioner
     49    (motor) pair by allowing users to define a table of known positions
     50    and providing a one-button click to drive a chosen X,Y pair to a specific
    4551    table setting.  Also can record current position into a setting.
    4652
  • wxmtxy/trunk/wxmtxy_xml.html

    r51 r178  
    99<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>wxmtxy_xml</strong></big></big></font></td
    1010><td align=right valign=bottom
    11 ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:///C|/documents%20and%20settings/pete/my%20documents/eclipse/workspace/wxmtxy/trunk/wxmtxy_xml.py">c:\documents and settings\pete\my documents\eclipse\workspace\wxmtxy\trunk\wxmtxy_xml.py</a></font></td></tr></table>
     11><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/oxygen18/JEMIAN/Documents/eclipse/usaxs/wxmtxy/trunk/wxmtxy_xml.py">/home/oxygen18/JEMIAN/Documents/eclipse/usaxs/wxmtxy/trunk/wxmtxy_xml.py</a></font></td></tr></table>
    1212    <p><tt>@note:&nbsp;support&nbsp;the&nbsp;XML&nbsp;settings&nbsp;file&nbsp;for&nbsp;the&nbsp;wxmtxy&nbsp;application<br>
    1313&nbsp;<br>
  • wxmtxy/trunk/wxmtxy_xml.py

    r50 r178  
    22
    33#*************************************************************************
    4 # Copyright (c) 2009 The University of Chicago, as Operator of Argonne
     4# Copyright (c) 2009-2010 The University of Chicago, as Operator of Argonne
    55#     National Laboratory.
    6 # Copyright (c) 2009 The Regents of the University of California, as
     6# Copyright (c) 2009-2010 The Regents of the University of California, as
    77#     Operator of Los Alamos National Laboratory.
    88# This file is distributed subject to a Software License Agreement found
Note: See TracChangeset for help on using the changeset viewer.