GPP4323 module

Created on Wed Feb 1 15:55:01 2023

@author: Martin.Mihaylov

Install Driver:

To use the DC-Power Supply GW-Instek GPP4323 you need to install the USB Driver from https://www.gwinstek.com/en-global/download/ - GPP USB Driver Python Library needed: pip install pyserial

class Instruments_Libraries.GPP4323.GPP4323(resource_str, visa_library='@py', **kwargs)[source]

Bases: BaseInstrument

Driver for GW-Instek GPP-4323 Power Supply using BaseInstrument (PyVISA).

Parameters:
  • resource_str (str)

  • visa_library (str)

get_channel_load_mode(channel)[source]

Queries CH1 or CH2 work mode. 6 modes: SERies/PARallel/INDE pendent, CV Load/CC Load/CR Load

Parameters:

channel (int) – Select channel from List of Channel Numbers [1,2].

Return type:

str

get_current_setting(channel)[source]

Returns the current setting, NOT the measured current!!!

Parameters:

channel (int) – Select channel from List of Channel Numbers [1,2,3,4].

Return type:

float

get_data(channel)[source]

Return a dictionary with the measured voltage and current.

Parameters:

channel (int) – Select channel from List of Channel Numbers [1,2,3,4].

Return type:

dict

get_load_resistor(channel)[source]
Parameters:

channel (int) – Select channel from List of Channel Numbers [1,2].

Return type:

float

get_voltage_setting(channel)[source]

Returns the voltage setting, NOT the measured voltage!!!

Parameters:

channel (int) – Select channel from List of Channel Numbers [1,2,3,4].

Return type:

float

measure(channel, measurement_type)[source]

Performs a measurement and returns the measured value.

Parameters:
  • channel (int) – Select channel from List of Channel Numbers [1,2,3,4].

  • Type (str) – Select measurement type: ‘volt’, ‘amp’ or ‘watt’.

  • measurement_type (str)

Return type:

float

measure_current(channel)[source]

Performs one current measurements and returns the value.

Parameters:

channel (int) – Select channel from List of Channel Numbers [1,2,3,4].

Return type:

float

measure_power(channel)[source]

Performs one power measurements and returns the value.

Parameters:

channel (int) – Select channel from List of Channel Numbers [1,2,3,4].

Return type:

float

measure_voltage(channel)[source]

Performs one voltage measurements and returns the value.

Parameters:

channel (int) – Select channel from List of Channel Numbers [1,2,3,4].

Return type:

float

set_all_outputs(state)[source]

Enable/Disable All Outputs

Parameters:

state (str) – state of power Supple output. Could be [“ON”, “OFF”]

Return type:

None

set_channel_load_mode(channel, mode, state)[source]

Sets CH1 or CH2 as Load CV, CC or CR mode.

Parameters:
  • channel (int) – Select channel from List of Channel Numbers [1,2].

  • mode (str) – Select Load CV, CC or CR mode.

  • state (str) – Possible state [“ON”, “OFF”].

Return type:

None

set_channel_tracking(mode)[source]

Selects the operation mode: independent, tracking series, or tracking parallel. GPP-1326 does not have this function. Series-parallel mode is not supported under LOAD.

Parameters:

mode (int) – Select 0 - Independent, 1 - Series or 2 - Parallel

Return type:

None

set_channel_tracking_parallel(state)[source]

Sets CH1/CH2 as Tracking parallel mode.

Parameters:

state (str) – Possible state [“ON”, “OFF”].

Return type:

None

set_channel_tracking_series(state)[source]

Sets CH1/CH2 as Tracking series mode.

Parameters:

state (str) – Possible state [“ON”, “OFF”].

Return type:

None

set_current(channel, amp)[source]
Parameters:
  • channel (int) – Select channel from List of Channel Numbers [1,2,3,4].

  • amp (int/float) – Set Current on Channel.

Return type:

None

set_current_limit(channel, amp)
Parameters:
  • channel (int) – Select channel from List of Channel Numbers [1,2,3,4].

  • amp (int/float) – Set Current on Channel.

Return type:

None

set_load_resistor(channel, res)[source]

Sets the Load CR level.

Parameters:
  • channel (int) – Select channel from List of Channel Numbers [1,2].

  • res (float) – Set resistance values from range 1-1000.

Return type:

None

set_out(channel, state)

Enable/Disable Output

Parameters:
  • channel (int) – Select channel from List of Channel Numbers [1,2,3,4].

  • state (str) – state of power Supple output. Could be [“ON”, “OFF”]

Return type:

None

set_output(channel, state)[source]

Enable/Disable Output

Parameters:
  • channel (int) – Select channel from List of Channel Numbers [1,2,3,4].

  • state (str) – state of power Supple output. Could be [“ON”, “OFF”]

Return type:

None

set_voltage(channel, voltage)[source]

Set Voltage on the specified channel.

Parameters:
  • channel (int) – Select channel from List of Channel Numbers [1,2,3,4].

  • voltage (int/float.) – Set Voltage on Channel.

Return type:

None