Skip to content

Commit 5b7d789

Browse files
author
Dilmi Wickramanayake
committed
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of https://github.com/ni/nipanel-python into users/DilmiWickramanayake/niscope_ex_fetch_forever
2 parents c4d6d7d + 498c199 commit 5b7d789

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/nidaqmx/nidaqmx_continuous_analog_input_panel.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@
2424
thermocouple_data = panel.get_value("thermocouple_data", [0.0])
2525
voltage_data = panel.get_value("voltage_data", [0.0])
2626

27-
sample_rate = panel.get_value("sample_rate", 0)
27+
sample_rate = panel.get_value("sample_rate", 0.0)
2828

2929
st.header("Voltage & Thermocouple")
3030
voltage_therm_graph = {
31+
"animation": False,
3132
"tooltip": {"trigger": "axis"},
3233
"legend": {"data": ["Voltage (V)", "Temperature (C)"]},
3334
"xAxis": {

examples/niscope/niscope_ex_fetch_forever.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
session.configure_trigger_software()
3434

3535
with session.initiate():
36-
wfm = np.ndarray(length * samples_per_fetch, dtype=np.int8)
36+
wfm: np.ndarray = np.ndarray(length * samples_per_fetch, dtype=np.int8)
3737
waveforms = session.channels[channels].fetch_into(
3838
relative_to=niscope.FetchRelativeTo.READ_POINTER,
3939
offset=0,

0 commit comments

Comments
 (0)