Finally able to get things working on PC with the TH2830, and even included versions which allow DC Bias Sweeps with Bias Fixture and external Power Supply.
https://www.eevblog.com/forum/projects/bias-network-for-lcr-meter/This uses VISA and requires Serial Ports be encoded (didn't bother with user input). These ports can be located with the Python gui script attached, then entered into the routine as a fixed USB serial port address.
Two external Power Supplies are supported, the GPP-4323 and SPD3303X, the SPD uses USB since it has no RS232 port. Various USB to RS232 adapters with appropriate "Null Modem Adapter" were used and work, the SPD3303X just uses a standard direct USB cable.
With these PS the Voltage read function is used to read back the PS setting DC voltage as the DUT voltage. This is generally OK, but for large capacitive DUT the actual voltage across the DUT can be significantly lower than the applied PS DC voltage and one needs to wait between voltage steps to allow the DUT Capacitor to charge up. Not allowing the DUT time to charge can also introduce a DUT parameter reading error as the Bias voltage across the DUT is changing as the LCR meter is reading the applied AC test voltage. In the DC Bias fixture mentioned, the external applied DC Bias time constant is ~3 seconds (30uF and 100K), if a large DUT capacitance is testing this should be increased by adding the additional DUT RC time constant where R is ~100K.
We also added the capability to use an external DMM (HP34401A) to read the actual voltage across the DUT under test. The HP is setup to use High Z mode for DC Readings and a separate external Banana jack (Yellow) is shown on the mentioned DC Bias Fixture, this is connected to the DUT + with a 100K series R for isolation. If one does a TH2830 Open and Short Calibration with everything connected (PS & DMM), then the effects of these external items should be accounted in the Open & Short Cal routine.
Here's the latest Python routines (routines are a work in progress, esp the plots) for use with a PC. Note the myvisa.py (also main and gui) must be included in the file directory as this is the routine for USB serial connection.
Anyway, these routines have proven very useful in evaluating various DUT behavior over frequency and DC Bias voltage, and hope this helps some folks which also should be adaptable to other bench type LCR meters ( & DMMs).
Best
Edit: To answer a question on how to connect things up for frequency sweep:
1) Connect PC to TH2830 with a USB to RS232 cable, use a Null Modem adapter on the RS232 connector (DB-9) on the TH2830.
2) Setup TH2830 System for RS232 communications with 9600 BAUD.
3) Find RS232 Port, (Use gui Python script or other means (VISA Interactive Control) to get port information).
4) Edit (you can use IDLE for this edit) TH2830_4.py file with RS232 port name (note must be in quotes as shown);
Line 24: TH2830 = "port name"
5) Run routine in IDLE
6) Enter parameters for sweep measurement, and sweep range.
7) Collected sweep data is displayed as ongoing list.
8 ) Select plot parameters, and select plot.
For GPP and/or SPD routines which sweep DC Bias Voltage at fixed frequency:
1) Follow above but enter ports for TH2830, Power Supply (GPP or SPD), and HP34401A DMM if used (be sure to setup each instrument for proper communications).
2) Note that SPD is connected with just standard USB cable (has no RS232 port). You still enter USB port as above, use gui.py or NI-MAX to show USB port.
3) Connect PS to DC Bias Adapter, and DMM to DC Bias Port Sense Terminal (Yellow) if using DCBias Adapter shown above in link.
4) Enter parameters and make sure to allow enough time for DC Bias Steps to settle between measurements for accurate measurements.
5) Collected data is displayed as ongoing list.
6) Plot results with selected plot parameters.