Are there any known bugs with the text controls for device definitions?
I'm in the process of developing a device definition and my text fields only appear to read from the device, but not write, despite defining the write command.
Below is an example of a text field:
#cmdSetup text Voc_List SAS_List
:write: LIST:SAS:VOC
:read: LIST:SAS:VOC?
:textwidth: 18
:tip: Enter comma-separated list of up to 512 Voc values
1000
Monitoring in debug shows that pressing the set button only triggers a read, not a write.
Also, any suggestions on how best to tidy up the readback with :readFormat: or :readmath: ?
It returns each number in the comma-separated list in scientific notation, which isn't particularly human-readable. This would be straight-forward with a number field, but I'm concerned I might have to try and shoehorn some standard java into the definition file to operate on an array or something!
This is the debug output when manually setting/reading the parameters:
TestController Window (debug mode)
LIST:SAS:VOC 64,63,62,61
;; E4360A: Tx <LIST:SAS:VOC 64,63,62,61>
LIST:SAS:VOC?
;; E4360A: Tx <LIST:SAS:VOC?>
;; E4360A: Rx <+6.400000E+01,+6.300000E+01,+6.200000E+01,+6.100000E+01>
;; +6.400000E+01,+6.300000E+01,+6.200000E+01,+6.100000E+01
TestController cmd window
LIST:SAS:VOC 64,63,62,61
;; E4360A: Tx <LIST:SAS:VOC 64,63,62,61>
LIST:SAS:VOC?
;; E4360A: Tx <LIST:SAS:VOC?>
;; E4360A: Rx <+6.400000E+01,+6.300000E+01,+6.200000E+01,+6.100000E+01>
;; +6.400000E+01,+6.300000E+01,+6.200000E+01,+6.100000E+01