; TestController device configuration file for the wrytech PDVS 2 Mini v2, firmware v2.26 and up.
; Version: 1.0
; Date: 28-06-2026
; Written by Gertjan Miedema,  info at miedemageluid dot nl,  Username "Gertjan" at EEVblog.

; For use with TestController, software to control and log data.
; Tested with wrytech PDVS 2 Mini v2, firmware 2.26, using the wrytech IUSL Isolated USB Serial Link interface.

; TestController must be restarted before any changes in this file will be used.
; TestController Manual is here: https://lygte-info.dk/project/TestControllerConfigDevice%20UK.html


; Some info & tips:
;
; - Set TestController and PDVS 2 Mini v2 to the same baud rate.
;   Factory default is 230400 baud, N81, no handshake.
;
; - The wrytech IUSL Isolated USB Serial Link does not need a driver for Windows 10 & 11.
;   For Windows XP, 7 and 8 an INF file is needed. Look for "Holtec HT42B534-x USB Bridge Setup".
;
; - The Status info in the Setup Menu is auto-refreshed every 5 seconds.


; Known issues:
;
; - This device driver works ONLY for the PDVS 2 Mini v2, firmware v2.26 or higher.
;   Because this driver is using the new SCPI commands introduced in v2.26.
;
; - Use for PDVS 2 Mini v2 with firmware older than v2.26 the other device driver: "wrytech PDVS 2 Mini v2"
;   That driver is for use with the previous generation serial commands.
;
;   Even older, pre wrytech, PDVS 2 Mini's (pre v2) are using earlier, different serial commands,
;   and will not work with either driver.
;   However, it will be easy to adapt the "wrytechPDVS2miniV2.txt"configuration file to those earlier commands.





#idString wrytech,PDVS 2 Mini,
#name wrytech PDVS 2 Mini v2.26 up
#handle PDVS2

#port com



; The author statement is used for the listing in the About window.
#author Gertjan Miedema


#notes  
- Device configuration file for the wrytech PDVS 2 Mini v2, firmware v2.26 and up.
  This driver is using the new SCPI commands introduced in v2.26.

- Use for PDVS 2 Mini v2 with firmware older than v2.26 the other device driver: "wrytech PDVS 2 Mini v2"
  That driver is for use with the previous generation serial commands.

- Set TestController and PDVS 2 Mini v2 to the same baud rate.
  Factory default is 230400 baud, N81, no handshake.

- The wrytech IUSL Isolated USB Serial Link does not need a driver for Windows 10 & 11.
  For Windows XP, 7 and 8 an INF file is needed. Look for "Holtec HT42B534-x USB Bridge Setup".
  For  no driver is needed.

- For more info, tips and known issues, see the notes in the header of the device configuration file (wrytechPDVS2miniV226up.txt).


Configuration file version: 1.0








; ---------- Read-Out commands ---------


; A list of possible column names with unit and formatter (SI, Time, Int, D0..D6).
; Format: #value ColumnName Unit Format

#value Volt V D5
#value Int.Temp grC D1
#value Batt V D1



; How to poll for data, this is used for table and #values?

#askValues SOUR:VOLT?;SYST:TEMP?;SYST:VOLT?





; Set output to null volt
#outputOff SOUR:VOLT 0


; Init command, used once after the device is connected.
; Resets the PDVS2 to 0V, and returns to main screen.
#initCmd *RST;[500]

; final command, before the connection is closed.
; Resets the PDVS2 to 0V, and returns to main screen.
#finalCmd *RST;[500]



; --------------------  Setup Menu  --------------------

#cmdSetup number Output_Voltage
:read:  SOUR:VOLT?
:write: SOUR:VOLT #
:updatealloff:
:update: Tempco_DAC_steps
:tip: Set output Voltage, up to 5 decimals
V 0 10.22222

#cmdSetup number Output_Voltage_
:read:  SOUR:VOLT?
:write: SOUR:VOLT #
:updatealloff:
:update: Tempco_DAC_steps
:tip: Set output Voltage, up to 5 decimals
V -0.01 10.22222


#cmdSetup selector Output_Volt
:read: OUTP:NEG?
0 Output_Voltage
1 Output_Voltage_


;------advanced------

#cmdSetup separator Negative_output
2 100 Empty

#cmdSetup separator Negative_output
2 100 Raised
center Advanced_features

#cmdSetup checkbox Negative_output
:read: OUTP:NEG?
:write: OUTP:NEG
:update: Output_Volt
:tip: Enable / disable negative output
on 0 1


#cmdSetup checkbox Tempco_compensation
:read: SYST:TEMP:COMP?
:write: SYST:TEMP:COMP
:update: Set_Tempco_comp,Tempco_DAC_steps
:tip: Enable / disable temperature compensation
on 0 1


#cmdSetup number Set_Tempco_comp
:read:  CAL:TEMP:COEF?
:write: CAL:TEMP:COEF #
:enable: Tempco_compensation.on==1
:update: Tempco_DAC_steps
:tip: Set temperature coefficient for compensation (ppm/K)
ppm/K -10 10


#cmdSetup info Tempco_DAC_steps
:read: SYST:TEMP:COMP:STEP?
:tip: Applied tempco correction in DAC steps
steps
_

#cmdSetup info Tempco_delta_temp
:read: SYST:TEMP:DELTA?
:tip: Difference between calibration temperature, and actual internal temperature
K
_


;--------info--------

#cmdSetup separator Internal_Temp
2 100 Empty

#cmdSetup separator Internal_Temp
2 100 Raised
center Status info



#cmdSetup info Internal_Temp
:read: SYST:TEMP?
:tip: Info is refreshed every 5 seconds
degr.C
_


#cmdSetup info Battery
:read: SYST:VOLT?
:tip: Info is refreshed every 5 seconds
V
_


#cmdSetup info Ext_power
:read: SYST:VIN?
:tip: <html>Voltage of applied external power<br>Reads zero if external power is absent
V
_


#cmdSetup info Up_time
:read: SYST:UPTIME?
:readmath: formatHMS(value)
:tip: Time the PDVS 2 Mini v2 has been powered on
_
_


; Auto-update the info controls every 5 seconds.
#cmdSetup Updater update
:update: Internal_Temp,Battery,Ext_power,Tempco_DAC_steps,Tempco_delta_temp,Up_time
5

