Skip to content

Commit

Permalink
Merge pull request #3 from mark0n/master
Browse files Browse the repository at this point in the history
Package Autosave R5.8
  • Loading branch information
dchabot authored Dec 12, 2017
2 parents d84a6e5 + e53b5a0 commit f2a1518
Show file tree
Hide file tree
Showing 51 changed files with 11,496 additions and 10,985 deletions.
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#Which files need CRLF handling
* text=auto
*.sh eol=lf
*.bat eol=crlf
*.cmd -text
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
*~
O.*
*.swp
*BAK.adl
bin/
db/
dbd/
html/
include/
lib/
templates/
cdCommands
envPaths
dllPath.bat
auto_settings.sav*
auto_positions.sav*

65 changes: 65 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@

Copyright (c) 2004 University of Chicago and the Regents of the University of
California. All rights reserved.

synApps is distributed subject to the following license conditions:
SOFTWARE LICENSE AGREEMENT
Software: synApps
Versions: Release 4-5 and higher.

1. The "Software", below, refers to synApps (in either source code, or
binary form and accompanying documentation). Each licensee is addressed
as "you" or "Licensee."

2. The copyright holders shown above and their third-party licensors hereby
grant Licensee a royalty-free nonexclusive license, subject to the
limitations stated herein and U.S. Government license rights.

3. You may modify and make a copy or copies of the Software for use within
your organization, if you meet the following conditions:
1. Copies in source code must include the copyright notice and this
Software License Agreement.
2. Copies in binary form must include the copyright notice and this
Software License Agreement in the documentation and/or other
materials provided with the copy.

4. You may modify a copy or copies of the Software or any portion of it, thus
forming a work based on the Software, and distribute copies of such work
outside your organization, if you meet all of the following conditions:
1. Copies in source code must include the copyright notice and this
Software License Agreement;
2. Copies in binary form must include the copyright notice and this
Software License Agreement in the documentation and/or other
materials provided with the copy;
3. Modified copies and works based on the Software must carry
prominent notices stating that you changed specified portions of
the Software.

5. Portions of the Software resulted from work developed under a
U.S. Government contract and are subject to the following license:
the Government is granted for itself and others acting on its behalf a
paid-up, nonexclusive, irrevocable worldwide license in this computer
software to reproduce, prepare derivative works, and perform publicly and
display publicly.

6. WARRANTY DISCLAIMER. THE SOFTWARE IS SUPPLIED "AS IS" WITHOUT WARRANTY OF
ANY KIND. THE COPYRIGHT HOLDERS, THEIR THIRD PARTY LICENSORS, THE UNITED
STATES, THE UNITED STATES DEPARTMENT OF ENERGY, AND THEIR EMPLOYEES: (1)
DISCLAIM ANY WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE, TITLE OR NON-INFRINGEMENT, (2) DO NOT ASSUME ANY LEGAL LIABILITY
OR RESPONSIBILITY FOR THE ACCURACY, COMPLETENESS, OR USEFULNESS OF THE
SOFTWARE, (3) DO NOT REPRESENT THAT USE OF THE SOFTWARE WOULD NOT
INFRINGE PRIVATELY OWNED RIGHTS, (4) DO NOT WARRANT THAT THE SOFTWARE WILL
FUNCTION UNINTERRUPTED, THAT IT IS ERROR-FREE OR THAT ANY ERRORS WILL BE
CORRECTED.

7. LIMITATION OF LIABILITY. IN NO EVENT WILL THE COPYRIGHT HOLDERS, THEIR
THIRD PARTY LICENSORS, THE UNITED STATES, THE UNITED STATES DEPARTMENT OF
ENERGY, OR THEIR EMPLOYEES: BE LIABLE FOR ANY INDIRECT, INCIDENTAL,
CONSEQUENTIAL, SPECIAL OR PUNITIVE DAMAGES OF ANY KIND OR NATURE,
INCLUDING BUT NOT LIMITED TO LOSS OF PROFITS OR LOSS OF DATA, FOR ANY
REASON WHATSOEVER, WHETHER SUCH LIABILITY IS ASSERTED ON THE BASIS OF
CONTRACT, TORT (INCLUDING NEGLIGENCE OR STRICT LIABILITY), OR OTHERWISE,
EVEN IF ANY OF SAID PARTIES HAS BEEN WARNED OF THE POSSIBILITY OF SUCH
LOSS OR DAMAGES.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# autosave
APS BCDA synApps module: autosave

For more information, see
http://www.aps.anl.gov/bcda/synApps

[Report an issue with autosave](https://github.com/epics-modules/autosave/issues/new?title=%20ISSUE%20NAME%20HERE&body=**Describe%20the%20issue**%0A%0A**Steps%20to%20reproduce**%0A1.%20Step%20one%0A2.%20Step%20two%0A3.%20Step%20three%0A%0A**Expected%20behaivour**%0A%0A**Actual%20behaviour**%0A%0A**Build%20Environment**%0AArchitecture:%0AEpics%20Base%20Version:%0ADependent%20Module%20Versions:&labels=bug)
[Request a feature](https://github.com/epics-modules/autosave/issues/new?title=%20FEATURE%20SHORT%20DESCRIPTION&body=**Feature%20Long%20Description**%0A%0A**Why%20should%20this%20be%20added?**%0A&labels=enhancement)

* [documentation](https://github.com/epics-modules/autosave/blob/master/documentation/README.md)


converted from APS SVN repository: Fri Oct 16 12:19:36 CDT 2015

Regarding the license of tagged versions prior to synApps 4-5,
refer to http://www.aps.anl.gov/bcda/synApps/license.php
3 changes: 2 additions & 1 deletion asApp/Db/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ include $(TOP)/configure/CONFIG
# Create and install (or just install) into <top>/db
# databases, templates, substitutions like this
#DB += xxx.db

DB += save_restoreStatus.db
DB += configMenu.db
#----------------------------------------------------
# If <anyname>.db template is not named <anyname>*.template add
# <anyname>_template = <templatename>
Expand Down
21 changes: 21 additions & 0 deletions asApp/Db/SR_get.csh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/csh
set P=$1
caget ${P}SR_aoDISP.DISP
caget ${P}SR_ao.PREC
caget ${P}SR_bo.IVOV
caget ${P}SR_ao.SCAN
caget ${P}SR_ao.VAL
caget ${P}SR_scaler.RATE
caget ${P}SR_ao.DESC
caget ${P}SR_ao.OUT
caget ${P}SR_longout
caget ${P}SR_bi.SVAL
caget ${P}SR_char_array
caget ${P}SR_double_array
caget ${P}SR_float_array
caget ${P}SR_long_array
caget ${P}SR_short_array
caget ${P}SR_string_array
caget ${P}SR_uchar_array
caget ${P}SR_ulong_array
caget ${P}SR_ushort_array
21 changes: 21 additions & 0 deletions asApp/Db/SR_put.csh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/csh
set P=$1
caput ${P}SR_aoDISP.DISP 1
caput ${P}SR_ao.PREC 3
caput ${P}SR_bo.IVOV 3
caput ${P}SR_ao.SCAN 3
caput ${P}SR_ao.VAL 3.1
caput ${P}SR_scaler.RATE 3.1
caput ${P}SR_ao.DESC desc
caput ${P}SR_ao.OUT "abc:rec PP"
caput ${P}SR_longout 3
caput ${P}SR_bi.SVAL 3
caput -S ${P}SR_char_array "abc"
caput -a ${P}SR_double_array 3 1 2 3
caput -a ${P}SR_float_array 3 1 2 3
caput -a ${P}SR_long_array 3 1 2 3
caput -a ${P}SR_short_array 3 1 2 3
caput -a ${P}SR_string_array 3 abc def ghi
caput -a ${P}SR_uchar_array 3 1 2 3
caput -a ${P}SR_ulong_array 3 1 2 3
caput -a ${P}SR_ushort_array 3 1 2 3
2 changes: 1 addition & 1 deletion asApp/Db/SR_test_settings.req
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ $(P)SR_string_array
$(P)SR_uchar_array
$(P)SR_ulong_array
$(P)SR_ushort_array
<END>

3 changes: 2 additions & 1 deletion asApp/Db/configMenu.db
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ record(busy, "$(P)$(CONFIG)Menu:busy") {
record(longout, "$(P)$(CONFIG)Menu:Page") {
field(FLNK, "$(P)$(CONFIG)MenuList:do.PROC")
}
# Note: the max number of menu entries is determined by NUM_ITEMS in configMenu.c
# Note: the number of menu entries per page must agree with NUM_ITEMS
# in configMenuSub.c
record(calcout, "$(P)$(CONFIG)Menu:PageUp") {
field(INPA, "$(P)$(CONFIG)Menu:Page")
field(CALC, "max(0,a+1)")
Expand Down
36 changes: 32 additions & 4 deletions asApp/Db/save_restoreStatus.db
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ record(bo, "$(P)SR_i_am_alive") {
field(ONAM, "1")
field(OUT, "$(P)SR_deadIfZero.VAL PP")
}

record(bo, "$(P)SR_deadIfZero") {
field(DTYP, "Soft Channel")
field(ZNAM, "0")
field(ONAM, "1")
field(HIGH, "$(DEAD_SECONDS=300)")
}

record(mbbo, "$(P)SR_rebootStatus") {
field(DTYP, "Soft Channel")
field(NOBT, "3")
Expand All @@ -36,6 +38,9 @@ record(mbbo, "$(P)SR_rebootStatus") {
field(TWST, "Warning")
field(THST, "Seq Fail")
field(FRST, "Ok")
field(ONSV, "MAJOR")
field(TWSV, "MINOR")
field(THSV, "MAJOR")
}

record(mbbo, "$(P)SR_status") {
Expand All @@ -50,6 +55,9 @@ record(mbbo, "$(P)SR_status") {
field(TWST, "Warning")
field(THST, "Seq Fail")
field(FRST, "Ok")
field(ONSV, "MAJOR")
field(TWSV, "MINOR")
field(THSV, "MAJOR")
}

record(stringout, "$(P)SR_recentlyStr") {
Expand Down Expand Up @@ -93,6 +101,9 @@ record(mbbo, "$(P)SR_0_Status") {
field(TWST, "Warning")
field(THST, "Seq Fail")
field(FRST, "Ok")
field(ONSV, "MAJOR")
field(TWSV, "MINOR")
field(THSV, "MAJOR")
}

record(stringout, "$(P)SR_0_StatusStr") {
Expand Down Expand Up @@ -126,6 +137,9 @@ record(mbbo, "$(P)SR_1_Status") {
field(TWST, "Warning")
field(THST, "Seq Fail")
field(FRST, "Ok")
field(ONSV, "MAJOR")
field(TWSV, "MINOR")
field(THSV, "MAJOR")
}

record(stringout, "$(P)SR_1_StatusStr") {
Expand Down Expand Up @@ -159,14 +173,16 @@ record(mbbo, "$(P)SR_2_Status") {
field(TWST, "Warning")
field(THST, "Seq Fail")
field(FRST, "Ok")
field(ONSV, "MAJOR")
field(TWSV, "MINOR")
field(THSV, "MAJOR")
}

record(stringout, "$(P)SR_2_StatusStr") {
field(DTYP, "Soft Channel")
field(VAL, "Status unknown")
}


record(stringout, "$(P)SR_2_Time") {
field(DTYP, "Soft Channel")
field(VAL, "Not yet saved")
Expand All @@ -193,6 +209,9 @@ record(mbbo, "$(P)SR_3_Status") {
field(TWST, "Warning")
field(THST, "Seq Fail")
field(FRST, "Ok")
field(ONSV, "MAJOR")
field(TWSV, "MINOR")
field(THSV, "MAJOR")
}

record(stringout, "$(P)SR_3_StatusStr") {
Expand Down Expand Up @@ -226,6 +245,9 @@ record(mbbo, "$(P)SR_4_Status") {
field(TWST, "Warning")
field(THST, "Seq Fail")
field(FRST, "Ok")
field(ONSV, "MAJOR")
field(TWSV, "MINOR")
field(THSV, "MAJOR")
}

record(stringout, "$(P)SR_4_StatusStr") {
Expand Down Expand Up @@ -259,7 +281,9 @@ record(mbbo, "$(P)SR_5_Status") {
field(TWST, "Warning")
field(THST, "Seq Fail")
field(FRST, "Ok")

field(ONSV, "MAJOR")
field(TWSV, "MINOR")
field(THSV, "MAJOR")
}

record(stringout, "$(P)SR_5_StatusStr") {
Expand Down Expand Up @@ -293,9 +317,11 @@ record(mbbo, "$(P)SR_6_Status") {
field(TWST, "Warning")
field(THST, "Seq Fail")
field(FRST, "Ok")
field(ONSV, "MAJOR")
field(TWSV, "MINOR")
field(THSV, "MAJOR")
}


record(stringout, "$(P)SR_6_StatusStr") {
field(DTYP, "Soft Channel")
field(VAL, "Status unknown")
Expand All @@ -322,12 +348,14 @@ record(mbbo, "$(P)SR_7_Status") {
field(TWVL, "2")
field(THVL, "3")
field(FRVL, "4")

field(ZRST, "No Status")
field(ONST, "Failure")
field(TWST, "Warning")
field(THST, "Seq Fail")
field(FRST, "Ok")
field(ONSV, "MAJOR")
field(TWSV, "MINOR")
field(THSV, "MAJOR")
}

record(stringout, "$(P)SR_7_StatusStr") {
Expand Down
Loading

0 comments on commit f2a1518

Please sign in to comment.