You can easily list many commands on the #askValues line and get whatever you wish. It do not matter if the meter can handle a line with multiple commands, TC will split them into single commands (This can be seen in log mode).
@Defpom, this is an illustration of what HKJ says. When I enter the following SCPI command on the VC4090C commandline:
FETC?;:FUNC:IMP:A?;:FUNC:IMP:B?
, I get following response in the Commands & Log window:
FETC?
;; 2.14313e-07,0.133632
:FUNC:IMP:A?
;; C
:FUNC:IMP:B?
;; ESR
Good, now it just needs to get the #modeFromValue working, i.e. support of AUTO mode. I wonder what exactly goes wrong, one possible fix is to swap the parameters to #askValues, i.e. place mode first (This will work if the problem is due to something in the :FETC? command). This would also require adjustment in the #askValuesReadFormat and #modeFromValue commands. I hope CJS will work a bit on it when he have time.
The problem that I see with AUTO mode is that the response of the VC4090C LCR meter on SCPI command :FUNC:IMP:A? is AUTO. So from this response it is not clear if the LCR meter has detected an inductor, capacitor or a resistor. Also in AUTO mode, the response on :FUNC:IMP:B? is the
last secundary mode that was active
before entering AUTO mode, and not the secondary mode that is active
in AUTO mode.
Example:
When I first set C as primary mode and ESR as secondary mode, the response on
:FUNC:IMP:A?; :FUNC:IMP:B?
is
:FUNC:IMP:A?
;; C
:FUNC:IMP:B?
;; ESR
When I then switch the meter to AUTO mode, the following parameters are shown on the display of the LCR meter:
Cs: 214.31 nF
D: 0.0001
So the meter is measuring capacitance and dissipation factor (in AUTO mode, the secondary mode cannot be changed)
The response on
FETC?;:FUNC:IMP:A?;:FUNC:IMP:B?
is:
;; 2.1432e-07,0.00012804
:FUNC:IMP:A?
;; AUTO
:FUNC:IMP:B?
;; ESR
So the measurement values that are returned are for C and D (dissipation factor), but the modes that are returned are AUTO and ESR.
Maybe other SCPI commands must be used to get the actual primary and secondary operating modes in AUTO mode. But in the SCPI command document that I posted earlier in this thread, I cannot find which other SCPI commands to use.
For me the AUTO mode is not really important. When I do automated measurements for characterization of a specific component, I know if the component is an L, C or R. And a limitation of the AUTO mode is that the secondary mode is not freely selectable. In AUTO mode, the secondary mode for an inductor is Q, for a capacitor it is D (dissipation factor), and for a resistor it is X (reactance). Other choices for the secondary mode are not possible.
Maybe we should just forget about the AUTO mode? We could remove AUTO mode from the Mode and Setup popups, and mention under Notes that AUTO mode is not supported.
Let me know what you think.