caproto.ioc_examples.enums.EnumIOC¶

-
class
caproto.ioc_examples.enums.EnumIOC(prefix, *, macros=None, parent=None, name=None)[source]¶ An IOC with some enums.
Each property here presents itself as a record with the expected fields over Channel Access.
For
biandbo, the ZNAM and ONAM fields hold the string equivalent values for 0 and 1. These are derived from theenum_stringskeyword argument.That is,
bo.ZNAMis “Zero Value”,bo.ONAMis"One Value", such thatcaput bo 1would show it being set to"One Value".For the mbbi record, the
ZRST(zero string) field,ONST(one string) field, and so on (up to 15), are similarly respected and mapped from theenum_stringskeyword argument.EnumIOC pvproperties¶ Attribute
Suffix
Docs
Type
Notes
Alarm Group
bi
biENUM (
bi)bo
boENUM (
bo)enum_class
enum_classMyEnum (
mbbi)mbbi
mbbiENUM (
mbbi)Methods
group_read(instance)Generic read called for channels without get defined
group_write(instance, value)Generic write called for channels without put defined
Attributes
default_valuestype_maptype_map_read_onlypvproperty methods