@@ -454,9 +454,10 @@ starting the IOC.
454454 Alarm Value Definitions: `softioc.alarm `
455455 ----------------------------------------
456456
457-
458457The following values can be passed to IN record :meth: `~softioc.device.ProcessDeviceSupportIn.set ` and
459- :meth: `~softioc.device.ProcessDeviceSupportIn.set_alarm ` methods.
458+ :meth: `~softioc.device.ProcessDeviceSupportIn.set_alarm ` methods, and to OUT record
459+ :meth: `~softioc.device.ProcessDeviceSupportOut.set ` and
460+ :meth: `~softioc.device.ProcessDeviceSupportOut.set_alarm `.
460461
461462.. attribute ::
462463 NO_ALARM = 0
@@ -549,7 +550,7 @@ class which provides the methods documented below.
549550 This class is used to implement Python device support for the record types
550551 ``ai ``, ``bi ``, ``longin ``, ``mbbi `` and IN ``waveform `` records.
551552
552- .. method :: set(value, severity=NO_ALARM, alarm=UDF_ALARM , timestamp=None)
553+ .. method :: set(value, severity=NO_ALARM, alarm=NO_ALARM , timestamp=None)
553554
554555 Updates the stored value and severity status and triggers an update. If
555556 ``SCAN `` has been set to ``'I/O Intr' `` (which is the default if the
@@ -608,14 +609,22 @@ Working with OUT records
608609 ``ao ``, ``bo ``, ``longout ``, ``mbbo `` and OUT ``waveform `` records. All OUT
609610 records support the following methods.
610611
611- .. method :: set(value, process=True)
612+ .. method :: set(value, process=True, severity=NO_ALARM, alarm=NO_ALARM )
612613
613- Updates the value associated with the record . By default this will
614+ Updates the stored value and severity status . By default this will
614615 trigger record processing, and so will cause any associated `on_update `
615616 and `validate ` methods to be called. If ``process `` is `False `
616617 then neither of these methods will be called, but the value will still
617618 be updated.
618619
620+ .. method :: set_alarm(severity, alarm)
621+
622+ This is exactly equivalent to calling::
623+
624+ rec.set(rec.get(), severity=severity, alarm=alarm)
625+
626+ and triggers an alarm status change without changing the value.
627+
619628 .. method :: get()
620629
621630 Returns the value associated with the record.
0 commit comments