Skip to content
Snippets Groups Projects

Fix precision in Keithley24xx commands.

Merged Karol Krizka requested to merge fixkeithleyset into devel
All threads resolved!
2 files
+ 20
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -94,13 +94,13 @@ double Keithley24XX::getCurrent(unsigned channel)
void Keithley24XX::setVoltage(double volt, unsigned channel)
{
send(":SOURCE:FUNC VOLT");
send(":SOURCE:VOLT " + std::to_string(volt));
send(":SOURCE:VOLT " + to_string_with_precision(volt));
}
void Keithley24XX::setCurrent(double cur, unsigned channel)
{
send(":SOURCE:FUNC CURR");
send(":SOURCE:CURR " + std::to_string(cur));
send(":SOURCE:CURR " + to_string_with_precision(cur));
}
void Keithley24XX::setVoltageProtect(double maxvolt, unsigned channel)
Loading