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 PSDiscoveryPS.MasterEnable.checked =true;// MasterEnable.checked works as expected// Configure Discovery PS Channel 1DiscoveryPS.Output.Output1.Enable.checked =true;// this has no effect on C1DiscoveryPS.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?
Question
baldengineer
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.)
Script Output response is:
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?
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now