Hi HKJ,
I am still busy with the new config for my Siglent SDG2122X and I have some new questions.
Q1: The #cmdsetup info seems not to support the tag :readformat:, see "info_error" attachment.
Part of setup config:
#cmdSetup button Get_Signal_Measurement Counter
:update: Signal_Frequency Signal_Deviation Signal_Width Signal_Duty_Cycle
#cmdSetup info Signal_Frequency Counter
:read: FCNT?
:readmath: getElement(getMatch(value,"FRQ,[^,]*(,|$)"),1,",")
:readformat: u
Hz_measured
_
#cmdSetup info Signal_Deviation Counter
:read: FCNT?
:readmath: getElement(getMatch(value,"FRQDEV,[^,]*(,|$)"),1,",")
:readformat: u
ppm_from_reference
_
Result of queries, where "Rx as number" is not present:
;; SDG2122X: Tx <FCNT?>
;; SDG2122X: Rx <FCNT STATE,ON,FRQ,0HZ,DUTY,0,REFQ,1e+07HZ,TRG,0V,PW,0S,NW,0S,FRQDEV,0ppm,MODE,AC,HFR,OFF
>
;; SDG2122X: Rx after :readmath: getElement(getMatch(value,"FRQ,[^,]*(,|$)"),1,",") <0HZ>
;; SDG2122X: Cache Tx: <FCNT?> Rx: <FCNT STATE,ON,FRQ,0HZ,DUTY,0,REFQ,1e+07HZ,TRG,0V,PW,0S,NW,0S,FRQDEV,0ppm,MODE,AC,HFR,OFF
>
;; SDG2122X: Rx after :readmath: getElement(getMatch(value,"FRQDEV,[^,]*(,|$)"),1,",") <0ppm>
;; SDG2122X: Cache Tx: <FCNT?> Rx: <FCNT STATE,ON,FRQ,0HZ,DUTY,0,REFQ,1e+07HZ,TRG,0V,PW,0S,NW,0S,FRQDEV,0ppm,MODE,AC,HFR,OFF
>
Q2: #cmdsetup controls, which are in a selector, will sometimes not be displayed; see "coupling_error" attachments.
However if I put these commands at the end of all statements for this page "coupling" they are displayed; see "coupling_OK" attachments.
But they are now out of the desired order of displayed items.
Q3: What to specify on :update: tag?
I see examples of page.control-name and only control-name in the Devices files.
The documentation says that using control-name will issue an update for all controls with the same name on all pages.
However what about page.control-name? Will this restrict the updates to that page or will the page be ignored and all control-names on all pages will be updated?
Q4: Which logical operators and/or combinations can be specified on :enable: tag?
This works :enable: Channel_1.Burst_Cycle=="1" && Channel_1.Burst_Trigger=="INT"
But I had no success adding a third one :enable: Channel_1.Burst_Cycle=="1" && Channel_1.Burst_Trigger=="INT" && Channel_1.Burst_Trigger_Edge=="RISE"
Q5: Is it possible to implement a variable on the #cmdsetup checkbox like on buttonsOn?