Skip to content

Commit b36c97c

Browse files
authored
Update custom_measurement.py
1 parent bc6d967 commit b36c97c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

examples/custom_measurement.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import numpy as np
22

33
from sciopy import (
4-
SystemMessageCallback,
54
sciospec_measurement,
65
connect_COM_port_usb_hs,
76
set_measurement_config_usb_hs,
@@ -12,8 +11,10 @@
1211

1312
s_path = ""
1413

14+
# connect device
1515
Sciospec = connect_COM_port_usb_hs()
1616

17+
# configuration
1718
ssms = ScioSpecMeasurementSetup(
1819
burst_count=1, # The number of measurements to be performed.
1920
total_meas_num=1, # Repetitions of burst count
@@ -31,10 +32,11 @@
3132
notes="test measurement", # add measurement information
3233
configured=True,
3334
)
34-
35+
# write config to device
3536
set_measurement_config_usb_hs(Sciospec, ssms)
3637
SystemMessageCallback_usb_hs(Sciospec, prnt_msg=True)
3738

39+
# measurement
3840
sciospec_data = sciospec_measurement(Sciospec, ssms)
3941

4042
file_idx = 0
@@ -45,4 +47,3 @@
4547
data=bursts,
4648
)
4749
file_idx += 1
48-
SystemMessageCallback(COM_ScioSpec, prnt_msg=False)

0 commit comments

Comments
 (0)