I'm guessing I'm trying to do this oversimplified. I want to hide the CH1 page when :CHAN1:STAT? is OFF.
#cmdSetup toggleButton Channels Main
:read: :CHAN1:STAT?
:write: :CHAN1:STAT
:string:
:nogrid:
:color: gray yellow
:update: Channels,Channel_1,Channel_2,Channel_3,Channel_4
:tip: Enable or disable channel
CH1 OFF
CH1 ON
#cmdSetup selector CH1_visible_in_On_State Main
:read: :CHAN1:STAT?
OFF
ON CH1
CH1 is the page. For example:
#cmdSetup info CH1_Unit CH1
:read: :CHAN1:UNIT?
:readmath: replace(replace(value,"V","Volts"),"A","Amps"))
:tip: Channel unit.
What is required to make this work?
Thanks,
Josh