Example #1
0
 public static MCACommand SetBias(ushort highVoltage, BiasInhibitInput inhibitInput)
 {
     return new MCACommand(CommandName.CMD_SET_BIAS, highVoltage, (uint)inhibitInput);
 }
Example #2
0
 public void SetHighVoltage(ushort value, BiasInhibitInput inhibitSignal)
 {
     if (HasPowerModule == false) { return; }
     if (value > MaximumHighVoltage) { throw new ArgumentOutOfRangeException(); }
     MCAResponse response = Client.Send(MCACommand.SetBias(value, inhibitSignal));
     if (response == null) { throw new MCADeviceLostConnectionException(); }
 }