Skip to content

Commit d89726c

Browse files
author
Dilmi Wickramanayake
committed
changed source settings
1 parent 62aa111 commit d89726c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/nidaqmx/nidaqmx_analog_input_filtering/nidaqmx_analog_input_filtering_panel.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@
338338
)
339339
if trigger_type == "2":
340340
with st.container(border=True):
341-
st.selectbox("Source->", " /Dev1/PFI0")
341+
st.selectbox("Source->", options=panel.get_value("trigger_sources", [""]))
342342
enum_selectbox(
343343
panel,
344344
label="Edge",
@@ -348,7 +348,7 @@
348348
)
349349
if trigger_type == "3":
350350
with st.container(border=True):
351-
st.selectbox("Source-", "/Dev1/PFI0")
351+
st.selectbox("Source-", options=panel.get_value("trigger_sources", [""]))
352352
st.selectbox("PauseWhen", options=["High", "Low"])
353353
if trigger_type == "4":
354354
with st.container(border=True):
@@ -357,7 +357,7 @@
357357
)
358358
if trigger_type == "5":
359359
with st.container(border=True):
360-
st.selectbox("Source:", "APFI0")
360+
st.text_input("Source:", "APFI0")
361361
enum_selectbox(
362362
panel,
363363
label="Slope",
@@ -375,7 +375,7 @@
375375

376376
if trigger_type == "6":
377377
with st.container(border=True):
378-
st.selectbox("source:", "APFI0")
378+
st.text_input("source:", "APFI0")
379379
st.selectbox("Pause When", options=["Above Level", "Below level"])
380380
st.number_input("level", value=0.0)
381381
if trigger_type == "7":

0 commit comments

Comments
 (0)