caproto
caproto copied to clipboard
TernaryArrayIOC
A TernaryDevice is a device with 3 states. Many components at a beamline have this behavior. For example, a valve, has an open and close command, a closed state, an open state, and an in-between state.
The TernaryArrayIOC is an IOC that has an array of TernaryDevices. An example of a device that has an array of ternary devices is an Attenuator, which is an array of filters.
I think an interesting thing about this example is the dynamic pv creation. Also, I think this is useful to test Ophyd devices like the Attenuator at CMS.
I plan to add an ophyd device here also.