Skip to content

Commit a712048

Browse files
author
Dilmi Wickramanayake
committed
changes to README.md
1 parent 34bc778 commit a712048

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

examples/niscope/niscope_binary_acquisition/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
Prerequisites
22
===============
3-
Requires a Physical or Simulated Device. Refer to the [Getting Started Section](https://github.com/ni/nidaqmx-python/blob/master/README.rst) to learn how to create a simulated device. This example uses NI oscilloscopes/digitizers, which have the module numbering pattern _51xx_. One example is NI PXIe-5114.
3+
Requires a Physical or Simulated Device. Refer to the [Getting Started Section](https://github.com/ni/nidaqmx-python/blob/master/README.rst) to learn how to create a simulated device. This example uses NI oscilloscopes and digitizers like the NI PXIe-5114
44

55
## Sample
66

7-
This is a nipanel example that displays an interactive Streamlit app and updates and fetches data from device.
7+
This is an nipanel example that displays an interactive Streamlit app and updates and fetches data from an NI device.
88

99
### Feature
1010

11-
Script demonstrates NIScope waveform data getting continuously acquired and being converted to binary data.
11+
Script demonstrates waveform data getting continuously acquired and being converted to binary data.
1212
- Supports various data types
1313

1414
### Required Software

examples/niscope/niscope_binary_acquisition/niscope_binary_acquisition.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
panel.set_value("run_button", False)
2222

2323
try:
24-
panel.set_value("daq_error", "")
24+
panel.set_value("scope_error", "")
2525
print(f"Panel URL: {panel.panel_url}")
2626
print(f"Waiting for the 'Run' button to be pressed...")
2727
print(f"(Press Ctrl + C to quit)")
@@ -102,9 +102,9 @@
102102
panel.set_value("is_running", False)
103103

104104
except Error as e:
105-
daq_error = str(e)
106-
print(daq_error)
107-
panel.set_value("daq_error", daq_error)
105+
scope_error = str(e)
106+
print(scope_error)
107+
panel.set_value("scope_error", scope_error)
108108

109109
except KeyboardInterrupt:
110110
pass

examples/niscope/niscope_binary_acquisition/niscope_binary_acquisition_panel.py

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

4848
st.text_input(

0 commit comments

Comments
 (0)