SimulatedPifLayout
public sealed class SimulatedPifLayout
The shape of a simulated process interface: how many channels of each sort it has, and what it claims to be capable of.
Every property has a working default: two of each channel, with a fail-safe line, which is a standard PIF's shape. Set only what the code under test has to see. Two rather than one, because an off-by-one in a channel index is invisible on a single-channel device.
SimulatedPifLayout: constructors
public SimulatedPifLayout()
SimulatedPifLayout: properties
public int AnalogInputCount { get; set; }
How many analog input pins it has.
public int AnalogOutputCount { get; set; }
How many analog output pins it has.
public PifAutonomy Autonomy { get; set; }
How much the camera firmware claims to drive unattended.
public int DigitalInputCount { get; set; }
How many digital input pins it has.
Zero is worth testing against: the Xi80 and Xi410 really have none, and an analog input with a threshold is the only way those cameras take a signal in.
public int DigitalOutputCount { get; set; }
How many digital output pins it has.
public bool HasFailSafe { get; set; }
Whether it has a fail-safe line at all.
Set this false to check that code asks PifHardwareInfo.HasFailSafe before arming one: ProcessInterface.FailSafe then refuses.
public bool IsSdkCalibrated { get; set; }
Whether the analog path should claim an SDK calibration slope.
public int MaximumStackableDeviceCount { get; set; }
The largest deviceCount ProcessInterface.DeclareIdentity(…) should accept.
public int StackableDeviceCount { get; set; }
How many physical devices the flat channel space spans.