Skip to content

Array callbacks have no effect when called during iocInit #191

@ericonr

Description

@ericonr

Hi!

I have an IOC with array records that are written to hardware, and read back, using asyn. The setpoints are in autosave and have PINI=YES. Their values are written to hardware correctly right after iocInit (I added a debug print right after the write, in writeInt32Array/writeFloat64Array, to be sure), but the readback PVs, which are updated via doCallbacksInt32Array/doCallbacksFloat64Array, aren't updated with the value from the setpoint (and in fact are UDF/INVALID).

The readback records use SCAN=I/O Intr, and they are updated when the setpoint PV is written to during operation, or when I write 1 into setpoint.PROC. The issue seems to be exclusively with the processing during IOC initialization.

I might have observed a similar issue with asynOctet as well, but I haven't prepared a reproducer for it yet, so I don't think it's relevant here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions