0

CPU温度、速度、GPU温度、速度、RAMなどのハードウェアに関する情報を取得するためにOpen Hardware Monitor 0.9.5を使用していますが、アップグレードして電圧も取得する必要があります。

だから私は問題なく2年からこのコードを使用しています:

myComputer = new Computer();
        myComputer.Open();
        myComputer.CPUEnabled = true;
        myComputer.GPUEnabled = true;
        myComputer.MainboardEnabled = true;
        myComputer.RAMEnabled = true;
        myComputer.FanControllerEnabled = true;
        myComputer.HDDEnabled = true;
        

        foreach (var hardwareItem in myComputer.Hardware)
        {
            hardwareItem.Update();                
            hardwareItem.GetReport();

            //var series = new LineSeries();

            foreach (var sensor in hardwareItem.Sensors)
            {                   

                if (sensor.SensorType == SensorType.Clock)
                {
                    MessageBox.Show(sensor.Value.ToString());
                }
            }

ここに画像の説明を入力

わかりましたので、電圧については、SensorType を Voltage に変更するだけです。

if (sensor.SensorType == SensorType.Voltage)
                    {
                        MessageBox.Show(sensor.Value.ToString());
                    }

しかし、この場合、メッセージもデータも電圧もないので、コードが欠けていると思いますか、それともバグですか?

4

0 に答える 0