Skip to content

Commit dbb4648

Browse files
authored
Update README.md
1 parent e362e4b commit dbb4648

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ Unlike the original Power Profiler Kit, the PPK2 uses Serial to communicate with
1515
## Usage
1616
At 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
```
2020
ppk2_test = PPK2_API("/dev/ttyACM3") # serial port will be different for you
2121
ppk2_test.get_modifiers()
22-
ppk2_test.user_source_meter() # set source meter mode
22+
ppk2_test.use_source_meter() # set source meter mode
2323
ppk2_test.set_source_voltage(3300) # set source voltage in mV
2424
ppk2_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+
3334
ppk2_test.stop_measuring()
3435
```
3536

0 commit comments

Comments
 (0)