So seems i am stuck on this step.
I am using the HP 34401a as a reference ( as I have this and it works great)
I cannot see #askValuesReadFormat in the def file, but it seems the 34401a is doing some conversion, as the response is adjusted.
;; HP34401A: Tx <READ?>
;; HP34401A: Rx <-1.21400000E-04>
;; HP34401A: Rx as numbers <-1.214E-4>
Where is this occur in the 34401 def file?
What is refereed to by the D0...D6 values? Are these part of there Meter SCPI? of part of "TestController"
Thanks! I really hope to get this working.
I Also attached my testing def file if it helps.
Using a voltmeter as reference is not that good of a idea, because it has different modes, a power supply do not. It makes the definition rather different. A meter needs the #askMode and power supply will usually not need it.
The #askValuesReadFormat is used when the device returns anything but plain numbers, in this case there are units attached to the number and you need to get rid of them.
Like this line:
#value VoltageDC V D6 VDC,d
It is only used when the meter is in voltage or diode more (VDC,d), removing the last part will make the line valid all the time:
#value VoltageDC V D6
The D0..D15 is number of decimals TestController will display. In TC there are 3 basic numeric format D=Fixed number of decimals, X=Up to number of decimals, SI=Use si prefix (MKmunp) and use up to specified number of digits. In a power supply something in the range D1 to D4 is usually needed.
I believe your biggest mistake was starting with a voltmeter definition, instead of a power supply definition. You need to fix the #value line and you will probably need to get rid of:
#askMode
#interfaceType DMM BMM
#interface readValue 0
#cmdMode
#prepareSample
#finalCmd
And the associated lines.