Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
WuhrlWuhrd committed Feb 10, 2024
1 parent c9849b3 commit c9777d0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,18 +224,20 @@ Otherwise, take a look at GraalVM [here](https://www.graalvm.org/).

```python
def main():

smu = K2450(GPIBAddress(0,20))
V = Column.ofDoubles("Voltage", "V")
I = Column.ofDoubles("Current", "A")
results = ResultList(V, I)

smu.setVoltage(0.0)
smu.turnOn()

for v in Range.linear(0.0, 60.0, 61):

smu.setVoltage(v)
Util.sleep(500)

results.mapRow({
V: smu.getVoltage(),
I: smu.getCurrent()
Expand Down

0 comments on commit c9777d0

Please sign in to comment.