I am using the Script instrument to control a DPS3340.
It appears C1, C2, and C3 all have an Enabled.Checked property. It appears I can set and read back the value, but it has no effect on the DiscoveryPS instrument.
Working with Waveforms 3.20.1, Windows, 64-bit. (I also tried Beta 3.20.16 but it has the same behavior.)
// manually uncheck C1's checkbox!
clear()
if(!('DiscoveryPS' in this)) throw "Please open the DiscoveryPS instrument";
// Turn on Discovery PS
DiscoveryPS.MasterEnable.checked = true; // MasterEnable.checked works as expected
// Configure Discovery PS Channel 1
DiscoveryPS.Output.Output1.Enable.checked = true; // this has no effect on C1
DiscoveryPS.Output.Output1.Voltage.value = "1.23";
DiscoveryPS.Output.Output1.Current.value = "1.23";
print("C1[" + DiscoveryPS.Output.Output1.Enable.checked + "]: " + DiscoveryPS.Output.Output1.Voltage.text + ", " + DiscoveryPS.Output.Output1.Current.text);
Script Output response is:
C1[true]: 1.23 V, 1.23 A
However, the checkbox is not checked, and the output is not enabled. Example result attached as screenshot.
Is there some other property or method to enable/disable channels individually?