V5.3.6: Error in .Net : KM_IO.cs
Posted: Fri Nov 22, 2024 2:06 pm
Hello Tom
I identified a bug when setting a value to an analog output.
The command should be
Frederic
I identified a bug when setting a value to an analog output.
/// <summary>
/// Sets the output level of an analog output
/// </summary>
/// <param name="value">-2048...2047</param>
public void SetAnalogValue(int value)
{
if (_IOType != IO_TYPE.ANALOG_OUT)
{
throw new DMException(this, new Exception("Cannot set digital value on a non analog output point of IO"), "Problem setting IO");
}
else
{
_Controller.WriteLine(String.Format("DAC{0}=", _ID, value));
}
}
The command should be
Regards_Controller.WriteLine(String.Format("DAC{0}={1}", _ID, value));
Frederic