caproto.ioc_examples.records.RecordMockingIOC

class caproto.ioc_examples.records.RecordMockingIOC(prefix, *, macros=None, parent=None, name=None)[source]
RecordMockingIOC pvproperties

Attribute

Suffix

Docs

Type

Notes

Alarm Group

A

A

float (ai)

B

B

float (ao)

Put

C

C

The C pvproperty

float (ai)

D

D

float (ao)

E

E

STRING (stringin)

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_values

type_map

type_map_read_only

pvproperty methods

B.putter(self, instance, value)
25
26
27
28
29
30
@B.putter
async def B(self, instance, value):
    if value == 1:
        # Mocked record will pick up the alarm status simply by us raising
        # an exception in the putter:
        raise ValueError('Invalid value!')