Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
test-and-measurement:analog-discovery-pro-5250:transistor-tester [2022/01/13 11:53] – [Inventory] Álmos Veres-Vitályostest-and-measurement:analog-discovery-pro-5250:transistor-tester [2022/10/04 11:38] (current) – external edit 127.0.0.1
Line 49: Line 49:
 ===== Writing the Script ===== ===== Writing the Script =====
 <WRAP group> <WRAP group>
-The full script can be downloaded {{|here}}.+The full script can be downloaded {{ :test-and-measurement:analog-discovery-pro-5250:transistor.zip |here}}.
 </WRAP> </WRAP>
  
Line 63: Line 63:
 # parameters # parameters
 Vd_resolution = 500 # drain voltage resolution in mV Vd_resolution = 500 # drain voltage resolution in mV
-Vd_limit = 25       # maximum drain voltage in V+Vd_limit = 40       # maximum drain voltage in V
 Vg_resolution = 2   # gate voltage resolution in V Vg_resolution = 2   # gate voltage resolution in V
 Vg_limit = 12       # maximum gate voltage in V Vg_limit = 12       # maximum gate voltage in V
Line 111: Line 111:
             print("\tDrain voltage: " + str(drain_voltage) + "V")             print("\tDrain voltage: " + str(drain_voltage) + "V")
             # set the drain voltage             # set the drain voltage
-            supplies.switch_25V(device_handle, True, False, drain_voltage, 0)+            if drain_voltage > 25: 
 +                supplies.switch_25V(device_handle, True, True, drain_voltage - 25, -25) 
 +            else: 
 +                supplies.switch_25V(device_handle, True, True, 0, drain_voltage * (-1))
  
             # delay             # delay
Line 171: Line 174:
  
 </WRAP><WRAP half column> </WRAP><WRAP half column>
 +{{ :test-and-measurement:analog-discovery-pro-5250:output_zvn3310a.png?600 |}}
 </WRAP></WRAP> </WRAP></WRAP>
 ---- ----