Skip to content

Commit 771fad5

Browse files
author
Dilmi Wickramanayake
committed
revert changes
1 parent a3e70f7 commit 771fad5

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

examples/nidaqmx/nidaqmx_continuous_analog_input/nidaqmx_continuous_analog_input.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,20 @@
66
import nidaqmx
77
from nidaqmx.constants import (
88
AcquisitionType,
9+
TerminalConfiguration,
910
CJCSource,
10-
LoggingMode,
11-
LoggingOperation,
1211
TemperatureUnits,
13-
TerminalConfiguration,
1412
ThermocoupleType,
13+
LoggingMode,
14+
LoggingOperation,
1515
)
16-
from nidaqmx.errors import DaqError
1716

1817
import nipanel
1918

2019
panel_script_path = Path(__file__).with_name("nidaqmx_continuous_analog_input_panel.py")
2120
panel = nipanel.create_streamlit_panel(panel_script_path)
2221

2322
try:
24-
panel.set_value("daq_error", "")
25-
2623
print(f"Panel URL: {panel.panel_url}")
2724
print(f"Waiting for the 'Run' button to be pressed...")
2825
print(f"(Press Ctrl + C to quit)")
@@ -82,9 +79,5 @@
8279
task.stop()
8380
panel.set_value("is_running", False)
8481

85-
except DaqError as e:
86-
daq_error = str(e)
87-
print(daq_error)
88-
panel.set_value("daq_error", daq_error)
8982
except KeyboardInterrupt:
9083
pass

0 commit comments

Comments
 (0)