Skip to content

Commit fcd7215

Browse files
author
Dilmi Wickramanayake
committed
changes to panel
1 parent 09be84f commit fcd7215

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/niscope/niscope_binary_acquisition/niscope_binary_acquisition_panel.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@
3838
with left_col:
3939
with st.container(border=True):
4040
if panel.get_value("is_running", False):
41-
st.button("Stop", key="stop_button")
41+
st.button(r"⏹️ Stop", key="stop_button")
4242
elif not panel.get_value("is_running", False) and panel.get_value("daq_error", "") == "":
43-
run_button = st.button("Run", key="run_button")
43+
run_button = st.button(r"▶️ Run", key="run_button")
4444
else:
4545
st.error(
4646
f"There was an error running the script. Fix the issue and re-run niscope_binary_acquisition.py \n\n {panel.get_value('daq_error', '')}"
4747
)
4848

49-
resource_name = st.text_input(label="Resource Name", value="Dev1")
49+
st.text_input(label="Resource Name", value="Dev1", key="resource_name", disabled=panel.get_value("is_running", False))
5050
st.number_input(
5151
"Channel",
5252
value=0,
@@ -89,8 +89,8 @@
8989
"Binary Data Size",
9090
options=[8, 16, 32],
9191
disabled=panel.get_value("is_running", False),
92+
key = "data_size"
9293
)
93-
panel.set_value("data_size", data_size)
9494
st.number_input(
9595
"Actual Binary Data Size",
9696
value=panel.get_value("actual_binary_data_size", 16),

0 commit comments

Comments
 (0)