ST9010A Hipot Tester Driver
Project description
ST90101A Hipot Tester
cd st9010a-hipot-tester
git clone git@gitlab.com:pass-testing-solutions/st9010a-hipot-tester.git
git remote add origin https://gitlab.com/pass-testing-solutions/st9010a-hipot-tester.git
git pull origin main
git checkout -b <your-new-branch> # Please follow the branch naming convention as mentioned in the coding guidelines
Description
This is an interface library for the ST90101A Hipot Tester.
Installation
pip install pts-st9010a-hipot-tester
Driver Functions
pts_st9010a_hipot_tester.st9010a_hipot_tester.ST9010AHipotTester(connection_string)
Base class for the ST90101A Hipot Tester
open_connection()
Opens a serial connection with the ST90101A Hipot Tester
close_connection()
Closes a serial connection with the ST90101A Hipot Tester
id_number()
This function returns the ID number
Returns: str : IDN
fetch_results()
Fetches all the measurement results
set_display(page)
Set the instrument's display page
Parameters
page – One of the instrument’s display pages
’Meas’: Test Display or Measurement page,
’Mset’: Test Setup or Measurement Setting page,
’Sysm’: System -> Environment page,
’Iost’: System -> IO page
Returns: None
check_display()
Queries the instrument's display page
Returns: Display page
start_test()
Starts Test on the ST9010A Hipot Tester
stop_test()
Stops Test on the ST9010A Hipot Tester
set_voltage(step, test_mode, voltage)
This function sets the voltage for the ACW/DCW/IR test
Parameters
step – The step for which the voltage is added in the range 1-20
test_mode – modes being AC/DC/IR
voltage – The voltage to be set in Volts in range
AC TEST: 50-5000 volts
DC TEST: 50-6000 volts
IR TEST: 50-1000 volts
Returns: No return
check_voltage(step, test_mode)
This function queries the voltage for the ACW test
Parameters
step – The step for which the voltage is added in the range 1-20
test_mode – modes being AC/DC/IR
Returns: float : Voltage in volts
set_current_limits(step, test_mode, low_limit, upper_limit)
This functions sets the lower and upper current limits for ACW/DCW/IR test
Parameters
test_mode – modes being AC/DC/IR
step – The step for which the current is added in the range 1-20
low_limit – Lower current limit in range
AC TEST: 0.001 mA
DC TEST: 0.001 mA
IR TEST: 0.001 mA
upper_limit – Upper current limit in range
AC TEST: 20.000 mA
DC TEST: 20.000 mA
IR TEST: 20.000 mA
Returns: No return
check_current_limits(step, test_mode)
This function checks the lower and upper current limits set by the user/by default
Parameters
test_mode – modes being AC/DC/IR
step – The step for which the current is added in the range 1-20
Returns: tuple : Lower and upper current limits in Amps respectively
set_test_time(step, test_mode, test_time)
This functions sets the TEST time for ACW/DCW/IR tests
Parameters
step – The step for which the test time is set in the range 1-20
test_mode – modes being AC/DC/IR
test_time – Time in range 0~999.9 (0 is OFF) seconds for ACW/DCW/IR test
Returns: No return
check_test_time(step, test_mode)
This functions queries the TEST time for the ACW/DCW/IR test
Parameters
step – The step for which the test time is set in the range 1-20
test_mode – modes being AC/DC/IR
Returns: float : Test time in seconds
set_rise_time(step, test_mode, rise_time)
This functions sets the RISE time for ACW/DCW/IR tests
Parameters
step – The step for which the rise time is set in the range 1-20
test_mode – modes being AC/DC/IR
rise_time – Time in range 0~999.9 (0 is OFF) seconds for ACW/DCW/IR test
Returns: No return
check_rise_time(step, test_mode)
This functions queries the RISE time for the ACW/DCW/IR test
Parameters
step – The step for which the rise time is set in the range 1-20
test_mode – modes being AC/DC/IR
Returns: float : Rise time in seconds
set_fall_time(step, test_mode, fall_time)
This functions sets the FALL time for ACW/DCW/IR tests
Parameters
step – The step for which the fall time is set in the range 1-20
test_mode – modes being AC/DC/IR
fall_time – Time in range 0~999.9 (0 is OFF) seconds for ACW/DCW/IR test
Returns: No return
check_fall_time(step, test_mode)
This functions queries the FALL time for the ACW/DCW/IR test
Parameters
step – The step for which the fall time is set in the range 1-20
test_mode – modes being AC/DC/IR
Returns: float : Fall time in seconds
set_channel(step, test_mode, channel, chan_value)
This functions sets HIGH/LOW/OPEN for the scanner channel for ACW/DCW/IR test.
Parameters
step – The step in the range 1-20
test_mode – modes being AC/DC/IR
channel – Channel in the range of 1-4
chan_value – Channel values being HIGH/LOW/OPEN
Returns: No return
get_channel(step, test_mode, channel)
This functions queries the set channel value for ACW/DCW/IR test.
Parameters
channel – Channel value set in the range for 1-4
step – The step in the range 1-20
test_mode – modes being AC/DC/IR
Returns: str : Channel value in (HIGH/LOW/OPEN)
set_ac_freq(step, freq)
This functions sets the test frequency for ACW test.
Parameters
step – The step for which the AC freq is set in the range 1-20
freq – Set value 50/60 Hz in ACW test
Returns: No return
get_ac_freq(step)
This functions queries the test frequency for ACW test.
Parameters
step – The step for which the AC freq is set in the range 1-20
Returns: float : Value for the test FREQUENCY
set_multiple_channels(step, test_mode, channel, chan_switch)
This functions sets ON/OFF (1/0) about multiple channels for ACW/DCW/IR test.
Parameters
step – The step for which channel is switched in the range 1-20
test_mode – modes being AC/DC/IR
channel – Channel in the range of 1-4
chan_switch – Channel switch being ON/OFF (1/0)
Returns: No return
check_multiple_channels(step, test_mode, channel)
This functions queries the multiple channels for ACW/DCW/IR test.
Parameters
channel – Channel value set in the range for 1-4
step – The step for which channel is switched in the range 1-20
test_mode – modes being AC/DC/IR
Returns: str : Channel switch being ON/OFF (1/0)
Authors and acknowledgment
Author: Shuparna Deb (@shuparnadeb_pts)
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pts_st9010a_hipot_tester-0.0.2.tar.gz
.
File metadata
- Download URL: pts_st9010a_hipot_tester-0.0.2.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.18 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37c177c39ec4bce0c6e061034fbd5ffe1897f26658695cd3a20144c8d507bcac |
|
MD5 | c73ba8d5c30679479d008176869b86a9 |
|
BLAKE2b-256 | 8ec1115da24d4691166561114a88f02d5e4b19b2261d712df6bbe3c1bf31abb6 |
File details
Details for the file pts_st9010a_hipot_tester-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: pts_st9010a_hipot_tester-0.0.2-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.18 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b79c9b6ef029eb02daadb12c58819b6c75bdc9593fd00698d5f8e1f2b60f87f |
|
MD5 | c9ee49d3188ea6c3bebd8055bf887e08 |
|
BLAKE2b-256 | 9a27e1c0d8cf726f611d06f7b29dfea06833cc3ac05b9eebfb1279fa5e79dc05 |