Closed AlexanderWells-diamond closed 2 years ago
partly associated with #43
A couple of notes on this.
It's a little misleading to write bo2 = builder.boolOut('BO2', ZNAM=0, ONAM=1, initial_value=1)
, as both ZNAM
and ONAM
will be converted to strings. Once we realise this, then we can rewrite the definitions of bo1
and bo2
to fill in the defaults as:
bo1 = builder.boolOut('BO1', ZNAM='', ONAM='', initial_value=1)
bo2 = builder.boolOut('BO2', ZNAM='0', ONAM='1', initial_value=1)
In the light of this, the observed behaviour is, unfortunately, normal behaviour as expected from EPICS.
If you create a boolOut record, specify an
initial_value
, and do NOT specifyZNAM
andONAM
explicitly the resultant record has no value. I'm not sure if this is just unclear documentation or an actual bug.And on the command line we see
BO1
has no value, whileBO2
does: