Haschtl / PyDPS

Python GUI for DPS3003,DPS3005,DPS5005,DPS3012, DPS5015,DPS5020 using USB or Bluetooth communication based on PyQt5
14 stars 2 forks source link

Setting Amps out by factor of 10 with DPH5005 #1

Open steveausuk opened 4 years ago

steveausuk commented 4 years ago

Before the changes, when setting 2 amps, the device was set to 0.2

To correct it, I have changed 100 ==> 1000 on the following lines in pyDPS.py: line 161: self.power_supply.write_register(1,int(amp*1000)) line 188: if self.data[1]/1000==round(self.ampSpinBox.value(),2):

Haschtl commented 3 years ago

This is different for the various DPS devices. My DPS5020 has a larger current-range and for this device the scaling of 100 is correct.

I'm not maintaining this project anymore. Feel free to create a pull request, with changes, which allow to select the device-type