Jump to content

baldengineer

Members
  • Posts

    2
  • Joined

  • Last visited

Contact Methods

  • Website URL
    https://baldengineer.com

Profile Information

  • Location
    Chicago, Il

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

baldengineer's Achievements

Newbie

Newbie (1/4)

0

Reputation

  1. That was it .Enable.value =1. I thought I had tried that, but I guess not! Thank you.
  2. 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?
×
×
  • Create New...