I’m working with the latest .NET OptoMMP SDK (R22.214.171.124), and have some questions regarding the API:
public int ReadHighDensityDigitalState(int i32PointNumber, out bool bState);
Why is there not a complimentary Write method?
public int ReadHighDensityDigitalState(int i32Module, int i32Point, out bool bState);
public int WriteHighDensityDigitalState(int i32Module, int i32Point, bool bState);
The second parameter, i32Point, is misnamed; a channel number is required, not a point number. In addition, both methods check whether the value of i32Point is within the range 0-63. Shouldn’t the maximum allowable value be 31?