Skip to content

Commit 2484e89

Browse files
committed
Fix bug in aOut limit specification
Use the LOPR and HOPR settings to set up DRVL and DRVH: this is the correct way to ensure that we don't attempt to write outside the defined limits. Also stop setting EGUL, EGUF: these have no meaning for pythonIoc. This fixes Jira ticket CGP-180.
1 parent a727c30 commit 2484e89

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python/softioc/builder.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ def _in_record(record, name, **fields):
3131

3232
def aIn(name, LOPR=None, HOPR=None, **fields):
3333
return _in_record('ai', name,
34-
LOPR = LOPR, HOPR = HOPR,
35-
EGUL = LOPR, EGUF = HOPR, **fields)
34+
LOPR = LOPR, HOPR = HOPR, **fields)
3635

3736
def aOut(name, LOPR=None, HOPR=None, **fields):
37+
fields.setdefault('DRVL', LOPR)
38+
fields.setdefault('DRVH', HOPR)
3839
return PythonDevice.ao(name,
39-
LOPR = LOPR, HOPR = HOPR,
40-
EGUL = LOPR, EGUF = HOPR, **fields)
40+
LOPR = LOPR, HOPR = HOPR, **fields)
4141

4242

4343
def boolIn(name, ZNAM=None, ONAM=None, **fields):

0 commit comments

Comments
 (0)