Skip to content

Commit be3c739

Browse files
author
Dilmi Wickramanayake
committed
setting default values
1 parent f158a15 commit be3c739

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/nidaqmx/nidaqmx_analog_input_filtering/nidaqmx_analog_input_filtering_panel.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@
143143
)
144144
st.selectbox(
145145
"Actual Filter Frequency",
146-
options=[panel.get_value("actual_filter_freq")],
146+
options=[panel.get_value("actual_filter_freq", 0.0)],
147147
disabled=True,
148148
)
149149
st.selectbox(
150-
"Actual Filter Order", options=[panel.get_value("actual_filter_order")], disabled=True
150+
"Actual Filter Order", options=[panel.get_value("actual_filter_order", 0)], disabled=True
151151
)
152152

153153
with right_col:
@@ -383,7 +383,7 @@
383383

384384
with st.container(border=True):
385385
acquired_data = panel.get_value("acquired_data", [0.0])
386-
sample_rate = panel.get_value("sample_rate", 0.0)
386+
sample_rate = panel.get_value("sample_rate", 100.0)
387387
acquired_data_graph = {
388388
"animation": False,
389389
"tooltip": {"trigger": "axis"},

0 commit comments

Comments
 (0)