public OutputBoard() //check for boards { int TotalBoard = PISODA2.TotalBoard(); if (TotalBoard == 0) { AssertResul(TotalBoard, "PISODA2 boards not found"); } else { BoardActivation(); } }
public void BoardActivation() //activate boards 1-16 currently only for one { short result = PISODA2.ActiveBoard(boardNo); if (result > 0) { AssertResul(result, $"Board activation failure, error code: {result}"); } else { BoardJumperConfig(); } }
public void BoardJumperConfig() //read settings { short result = PISODA2.ReadJumper(boardNo, out byte jumper); if (result != 0) { AssertResul(result, $"Read Jumper error, error code:{result}"); } else { JumperSettings(jumper); } }
} = 1; //0-voltage output; 1-current sink public void BoardPushValue(float targetCurrent) //use this method for pushing voltage value { var result = PISODA2.DA(boardNo, channel, OutputMode, targetCurrent); AssertResul(result, $"PushValue error, code:{result}"); }
private void Dispose() //release resource { PISODA2.CloseBoard((byte)TotalBoard); }