Package: pts-st9010a-hipot-tester
ST90101A Hipot Testercd 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 guidelinesDescriptionThis is an interface library for the ST90101A Hipot Tester.Installationpip install pts-st9010a-hipot-testerDriver Functionspts_st9010a_hipot_tester.st9010a_hipot_tester.ST9010AHipotTester(connection_string)Base class for the ST90101A Hipot Testeropen_connection()Opens a serial connection with the ST90101A Hipot Testerclose_connection()Closes a serial connection with the ST90101A Hipot Testerid_number()This function returns the ID numberReturns:str : IDNfetch_results()Fetches all the measurement resultsset_display(page)Set the instrument's display pageParameterspage–
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 pageReturns:Nonecheck_display()Queries the instrument's display pageReturns:Display pagestart_test()Starts Test on the ST9010A Hipot Testerstop_test()Stops Test on the ST9010A Hipot Testerset_voltage(step, test_mode, voltage)This function sets the voltage for the ACW/DCW/IR testParametersstep– The step for which the voltage is added in the range 1-20test_mode– modes being AC/DC/IRvoltage– The voltage to be set in Volts in rangeAC TEST: 50-5000 voltsDC TEST: 50-6000 voltsIR TEST: 50-1000 voltsReturns:No returncheck_voltage(step, test_mode)This function queries the voltage for the ACW testParametersstep– The step for which the voltage is added in the range 1-20test_mode– modes being AC/DC/IRReturns:float : Voltage in voltsset_current_limits(step, test_mode, low_limit, upper_limit)This functions sets the lower and upper current limits for ACW/DCW/IR testParameterstest_mode– modes being AC/DC/IRstep– The step for which the current is added in the range 1-20low_limit– Lower current limit in rangeAC TEST: 0.001 mADC TEST: 0.001 mAIR TEST: 0.001 mAupper_limit– Upper current limit in rangeAC TEST: 20.000 mADC TEST: 20.000 mAIR TEST: 20.000 mAReturns:No returncheck_current_limits(step, test_mode)This function checks the lower and upper current limits set by the user/by defaultParameterstest_mode– modes being AC/DC/IRstep– The step for which the current is added in the range 1-20Returns:tuple : Lower and upper current limits in Amps respectivelyset_test_time(step, test_mode, test_time)This functions sets the TEST time for ACW/DCW/IR testsParametersstep– The step for which the test time is set in the range 1-20test_mode– modes being AC/DC/IRtest_time– Time in range 0~999.9 (0 is OFF) seconds for ACW/DCW/IR testReturns:No returncheck_test_time(step, test_mode)This functions queries the TEST time for the ACW/DCW/IR testParametersstep– The step for which the test time is set in the range 1-20test_mode– modes being AC/DC/IRReturns:float : Test time in secondsset_rise_time(step, test_mode, rise_time)This functions sets the RISE time for ACW/DCW/IR testsParametersstep– The step for which the rise time is set in the range 1-20test_mode– modes being AC/DC/IRrise_time– Time in range 0~999.9 (0 is OFF) seconds for ACW/DCW/IR testReturns:No returncheck_rise_time(step, test_mode)This functions queries the RISE time for the ACW/DCW/IR testParametersstep– The step for which the rise time is set in the range 1-20test_mode– modes being AC/DC/IRReturns:float : Rise time in secondsset_fall_time(step, test_mode, fall_time)This functions sets the FALL time for ACW/DCW/IR testsParametersstep– The step for which the fall time is set in the range 1-20test_mode– modes being AC/DC/IRfall_time– Time in range 0~999.9 (0 is OFF) seconds for ACW/DCW/IR testReturns:No returncheck_fall_time(step, test_mode)This functions queries the FALL time for the ACW/DCW/IR testParametersstep– The step for which the fall time is set in the range 1-20test_mode– modes being AC/DC/IRReturns:float : Fall time in secondsset_channel(step, test_mode, channel, chan_value)This functions sets HIGH/LOW/OPEN for the scanner channel for ACW/DCW/IR test.Parametersstep– The step in the range 1-20test_mode– modes being AC/DC/IRchannel– Channel in the range of 1-4chan_value– Channel values being HIGH/LOW/OPENReturns:No returnget_channel(step, test_mode, channel)This functions queries the set channel value for ACW/DCW/IR test.Parameterschannel– Channel value set in the range for 1-4step– The step in the range 1-20test_mode– modes being AC/DC/IRReturns:str : Channel value in (HIGH/LOW/OPEN)set_ac_freq(step, freq)This functions sets the test frequency for ACW test.Parametersstep– The step for which the AC freq is set in the range 1-20freq– Set value 50/60 Hz in ACW testReturns:No returnget_ac_freq(step)This functions queries the test frequency for ACW test.Parametersstep– The step for which the AC freq is set in the range 1-20Returns:float : Value for the test FREQUENCYset_multiple_channels(step, test_mode, channel, chan_switch)This functions sets ON/OFF (1/0) about multiple channels for ACW/DCW/IR test.Parametersstep– The step for which channel is switched in the range 1-20test_mode– modes being AC/DC/IRchannel– Channel in the range of 1-4chan_switch– Channel switch being ON/OFF (1/0)Returns:No returncheck_multiple_channels(step, test_mode, channel)This functions queries the multiple channels for ACW/DCW/IR test.Parameterschannel– Channel value set in the range for 1-4step– The step for which channel is switched in the range 1-20test_mode– modes being AC/DC/IRReturns:str : Channel switch being ON/OFF (1/0)Authors and acknowledgmentAuthor: Shuparna Deb (@shuparnadeb_pts)License