According to the documentation, this should work:
#!/usr/local/epics/modules/pythonIoc/pythonIoc
from softioc import softioc, builder
builder.SetDeviceName('XX')
rec = builder.aIn('VALUE')
calc = builder.records.calc('CALC', CALC = 'A*B', A = rec, B = 42)
rec.FLNK = builder.PP(calc)
It chokes when assigning rec to input A.
File "/usr/local/epics/modules/epicsdbbuilder/epicsdbbuilder/recordbase.py", line 190, in __ValidateField
self._validate.ValidFieldValue(fieldname, str(value))
File "/usr/local/epics/modules/epicsdbbuilder/epicsdbbuilder/dbd.py", line 111, in ValidFieldValue
'Can\'t write "%s" to field %s: %s' % (value, name, message)
AssertionError: Can't write "XX:VALUE" to field A: not a number
Does anyone have a working example of using a calc record in python softioc?
Paul