public void GetVoltage(DevicePort product, ref HardwareStructure.MyComputer _data, int which) { try { MyProtocolBytesTransfer.SetReadBytes(this._setReadBytes, 132, 0); MySerialPortProcess.ReadWriteCommand(this._setReadBytes, product, this._readReply); _data.get_GridFanHub()[which].set_DCVoltage(MyProtocolBytesTransfer.SetReplyVoltageCurrentBytes(this._readReply)); } catch { } }
public void GetRev2Voltage(DevicePort product, ref HardwareStructure.MyComputer _data, int which) { try { for (int i = 1; i < 7; i++) { MyProtocolBytesTransfer.SetReadBytes(this._setReadBytes, 132, (byte)i); MySerialPortProcess.ReadWriteCommand(this._setReadBytes, product, this._readReply); _data.get_GridFanHub()[which].get_ChannelDCVoltage()[i] = MyProtocolBytesTransfer.SetReplyVoltageCurrentBytes(this._readReply); } } catch { } }