File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ Unlike the original Power Profiler Kit, the PPK2 uses Serial to communicate with
1515## Usage
1616At this point in time the library provides the basic API with a basic example showing how to read data and toggle DUT power.
1717
18- To enable power monitoring in Ampere mode implement the following sequence:
18+ To enable power monitoring in Source mode implement the following sequence:
1919```
2020ppk2_test = PPK2_API("/dev/ttyACM3") # serial port will be different for you
2121ppk2_test.get_modifiers()
22- ppk2_test.user_source_meter () # set source meter mode
22+ ppk2_test.use_source_meter () # set source meter mode
2323ppk2_test.set_source_voltage(3300) # set source voltage in mV
2424ppk2_test.start_measuring() # start measuring
2525
@@ -30,6 +30,7 @@ for i in range(0, 1000):
3030 samples = ppk2_test.get_samples(read_data)
3131 print(f"Average of {len(samples)} samples is: {sum(samples)/len(samples)}uA")
3232 time.sleep(0.001) # lower time between sampling -> less samples read in one sampling period
33+
3334ppk2_test.stop_measuring()
3435```
3536
You can’t perform that action at this time.
0 commit comments