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)[source]

Bases: object

Close()[source]
ask_ChannelLoadMode(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].

Returns:

SERies/PARallel/INDependent, CV Load/CC Load/CR Load

Return type:

str

ask_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].

Returns:

Measured Current.

Return type:

float

ask_CurrentSetting(channel)[source]

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

Parameters:

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

Returns:

Current Setting.

Return type:

float

ask_LoadResistor(channel)[source]
Parameters:

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

Returns:

Set load Resistance Value for given channel.

Return type:

float

ask_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].

Returns:

Measured Power.

Return type:

float

ask_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].

Returns:

Measured Voltage.

Return type:

float

ask_VoltageSetting(channel)[source]

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

Parameters:

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

Returns:

Voltage Setting.

Return type:

float

getIdn()[source]

Returns the Instrument Identification: GW Instek,GPP-4323

Return type:

str

get_data(channel)[source]
Parameters:

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

Returns:

OutPut – Return a dictionary with the measured voltage and current.

Return type:

dict

query_values(message)[source]
read_Measurement(channel, 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’.

  • type (str)

Returns:

Return float with the measured value on the channel.

Return type:

float

reset()[source]
set_AllOut(state)[source]

Enable/Disable All Outputs

Parameters:

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

Return type:

None.

set_Amp(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_ChannelLoadMode(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_ChannelToParallel(state)[source]

Sets CH1/CH2 as Tracking parallel mode.

Parameters:

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

Return type:

None.

set_ChannelToSerial(state)[source]

Sets CH1/CH2 as Tracking series mode.

Parameters:

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

Return type:

None.

set_ChannelTracking(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_Current(channel, amp)[source]

Alias for set_Amp().

Parameters:
  • channel (int)

  • amp (int | float)

Return type:

None

set_CurrentLimit(channel, amp)[source]

Alias for set_Amp().

Parameters:
  • channel (int)

  • amp (int | float)

Return type:

None

set_LoadResistor(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)[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_Volt(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.

set_Voltage(channel, voltage)[source]

Alias for set_Volt().

Parameters:
  • channel (int)

  • voltage (int | float)

Return type:

None

write(message)[source]