-
Notifications
You must be signed in to change notification settings - Fork 0
Add NI-SCOPE EX Binary Acquisition Example #126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
DilmiWickramanayake
merged 161 commits into
main
from
users/DilmiWickramanayake/niscope_binary
Aug 6, 2025
Merged
Changes from 157 commits
Commits
Show all changes
161 commits
Select commit
Hold shift + click to select a range
b7abc39
Analog Input - Voltage and Thermocouple Single Task
aa6488a
Merge branch 'main' of https://github.com/ni/nipanel-python
6d2ec85
Merge branch 'main' of https://github.com/ni/nipanel-python
89d9c2e
Merge branch 'main' of https://github.com/ni/nipanel-python
871f6e1
add niscope
336d7b5
Rename
31e7f0c
Merge branch 'main' of https://github.com/ni/nipanel-python
5f7776f
Merge branch 'main' into users/DilmiWickramanayake/niscope_ex_fetch_f…
1b00959
Merge branch 'main' into users/DilmiWickramanayake/niscope_ex_fetch_f…
5534c9a
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of …
6083519
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of …
01a2e08
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of …
435aedd
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of …
8dbd7d0
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of …
b6e43c6
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of …
9643953
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of …
66808fb
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of …
afeb185
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of …
eb3da14
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of …
8b9cc4a
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of …
b27c77f
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of …
94a0afc
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of …
0d720c5
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of …
be1839f
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of …
4e7e158
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of …
c394513
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of …
fe6a780
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of …
498c199
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of …
c4d6d7d
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of …
414257d
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of …
5b7d789
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of …
742b685
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of …
e50dadc
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of …
838cd70
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of …
7338e2c
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of …
e99a548
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of …
93fede0
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of …
b2bfe84
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of …
5cdc785
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of …
a80d753
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of …
2056cf3
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of …
f1395d6
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of …
a8f847b
Analog Input Filtering
24c532b
Merge branch 'main' of https://github.com/ni/nipanel-python into user…
27a8154
Merge branch 'main' of https://github.com/ni/nipanel-python
4d49c37
Merge branch 'main' of https://github.com/ni/nipanel-python
2fedc38
Merge branch 'main' of https://github.com/ni/nipanel-python into user…
8c70ac5
Merge branch 'users/DilmiWickramanayake/Analog_Input_filtering' of ht…
4937acd
Merge branch 'users/DilmiWickramanayake/Analog_Input_filtering' of ht…
d50204f
Merge branch 'users/DilmiWickramanayake/Analog_Input_filtering' of ht…
5d2d549
Merge branch 'users/DilmiWickramanayake/Analog_Input_filtering' of ht…
577b344
Merge branch 'users/DilmiWickramanayake/Analog_Input_filtering' of ht…
4807eb1
Merge branch 'main' of https://github.com/ni/nipanel-python
0a8da81
Merge branch 'main' into users/DilmiWickramanayake/Analog_Input_filte…
a82f608
Completed Task Settings
c62c497
Merge branch 'main' of https://github.com/ni/nipanel-python
e667025
Merge branch 'main' into users/DilmiWickramanayake/Analog_Input_filte…
39959b5
Merge branch 'main' into users/DilmiWickramanayake/Analog_Input_filte…
0988885
Merge branch 'users/DilmiWickramanayake/Analog_Input_filtering' of ht…
0f7ddc1
Added README.md
79ae4db
fixed mypy & lint errors
957ef54
fixed mypy & lint errors
8422770
Merge branch 'users/DilmiWickramanayake/Analog_Input_filtering' of ht…
ee296f9
Merge branch 'users/DilmiWickramanayake/Analog_Input_filtering' of ht…
a03250b
Merge branch 'users/DilmiWickramanayake/Analog_Input_filtering' of ht…
2655fd9
Merge branch 'users/DilmiWickramanayake/Analog_Input_filtering' of ht…
9efb83a
Merge branch 'users/DilmiWickramanayake/Analog_Input_filtering' of ht…
886623e
Revert changes
28f2209
simple graph changes
709d47e
simple graph changes
372531f
Merge branch 'users/DilmiWickramanayake/Analog_Input_filtering' of ht…
a2a803e
Merge branch 'users/DilmiWickramanayake/Analog_Input_filtering' of ht…
7c6737b
Merge branch 'users/DilmiWickramanayake/Analog_Input_filtering' of ht…
56f5e10
Merge branch 'users/DilmiWickramanayake/Analog_Input_filtering' of ht…
374ef68
Merge branch 'users/DilmiWickramanayake/Analog_Input_filtering' of ht…
219c2de
Update simple_graph.py
DilmiWickramanayake 809ced3
Poetry lock
fcbc70c
Merge branch 'users/DilmiWickramanayake/Analog_Input_filtering' of ht…
e5e2b9b
Merge branch 'users/DilmiWickramanayake/Analog_Input_filtering' of ht…
f241821
Merge branch 'users/DilmiWickramanayake/Analog_Input_filtering' of ht…
81114c4
Merge branch 'users/DilmiWickramanayake/Analog_Input_filtering' of ht…
fd75741
Merge branch 'users/DilmiWickramanayake/Analog_Input_filtering' of ht…
3a043a7
Merge branch 'users/DilmiWickramanayake/Analog_Input_filtering' of ht…
ee3ff1d
Merge branch 'users/DilmiWickramanayake/Analog_Input_filtering' of ht…
ffca8c1
update lint errors
66faa59
update lint errors
29835f5
Merge branch 'main' of https://github.com/ni/nipanel-python
82c2b7f
Merge branch 'main' into users/DilmiWickramanayake/Analog_Input_filte…
a69ad29
fix changes to filtering
2f569a8
fix changes to filtering
fb2b46f
Merge branch 'users/DilmiWickramanayake/Analog_Input_filtering' of ht…
c385fb2
changes to poetry lock file
1ab9fa6
changes to poetry lock file
85a7856
Merge branch 'users/DilmiWickramanayake/Analog_Input_filtering' of ht…
6354786
Pyright error
722c3d5
lint error
bbdeb81
fixed errors
065d6f4
Fixed panel comments
3a22846
Fixed panel comments
f48c26b
format number input
92b3260
format number input
68db2a4
adding number format
ee3f07a
lint errors fixed
62aa111
fixing lint errors
d89726c
changed source settings
4ca3b00
setting source up
098d9fb
fixing lint error
d0cb228
resolved comments
ded87ce
deleting unecessary variables
585f3e4
Merge branch 'main' of https://github.com/ni/nipanel-python
2d31d50
Merge branch 'main' into users/DilmiWickramanayake/Analog_Input_filte…
f158a15
updated run button and panel methods
be3c739
setting default values
207fe57
adding daq errors
f19d608
README.md changes
d06a4fd
error handling
338424d
rename daq_errors -> daq_error
2b1af62
rename daq_error
25294c4
source now works
ec42095
fix lint errors
4721e33
remove comment
9105a3a
remove logging
e4a9179
disable run button
8440772
added onboard clock
76a8d26
renaming hide_button method
9d2f392
fixing mypy error
282c530
lint error
80970c4
removed function and simplified code
2d4b95e
remove analog output and markdown
5401b66
renaming labels
733b953
update error message
b0a4fdf
update README.md
3ea497b
remove changes
457020a
removing changes
b9b85ef
resolve changes
ae409d5
Dev4 -> Dev1
0bb90e5
readme
8256e5b
Merge branch 'main' of https://github.com/ni/nipanel-python
ada35d6
Merge branch 'main' of https://github.com/ni/nipanel-python into user…
7167f42
Merge branch 'main' into users/DilmiWickramanayake/Analog_Input_conti…
498bd7b
readme
a415fe7
run_button = deleted
869a13b
adding niscope binary example
d45e9c7
reset run button
09be84f
moving ex fetch forever files to folder
fcd7215
changes to panel
33e74a9
updating branch
7e85c89
removed comment & fixed wording
d56a096
changes to wording
48f5626
Merge branch 'users/DilmiWickramanayake/niscope_binary' of https://gi…
577a116
delete space
ec66512
Merge branch 'users/DilmiWickramanayake/niscope_binary' of https://gi…
a3e70f7
revert changes
771fad5
revert changes
f0b3056
Update nidaqmx_continuous_analog_input.py
DilmiWickramanayake 2e25548
fix lint error
789c1b9
fix mypy errors
34bc778
resolved changes
a712048
changes to README.md
2b30a8f
removed .fetch_array_measurement
ce35c34
fixing lint errors
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| Prerequisites | ||
| =============== | ||
| 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. | ||
|
|
||
| ## Sample | ||
|
|
||
| This is a nipanel example that displays an interactive Streamlit app and updates and fetches data from device. | ||
DilmiWickramanayake marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ### Feature | ||
|
|
||
| Script demonstrates NIScope waveform data getting continuously acquired and being converted to binary data. | ||
DilmiWickramanayake marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - Supports various data types | ||
|
|
||
| ### Required Software | ||
|
|
||
| - Python 3.9 or later | ||
|
|
||
| ### Usage | ||
|
|
||
| ```pwsh | ||
| poetry install --with examples | ||
| poetry run examples\niscope\niscope_binary_acquisition\niscope_binary_acquisition.py | ||
| ``` | ||
110 changes: 110 additions & 0 deletions
110
examples/niscope/niscope_binary_acquisition/niscope_binary_acquisition.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,110 @@ | ||
| """Continuously acquires waveforms from NI-SCOPE, processes/scales them.""" | ||
|
|
||
| import time | ||
| from pathlib import Path | ||
| from typing import Any | ||
|
|
||
| import hightime | ||
| import niscope | ||
| import numpy as np | ||
| from niscope.enums import ArrayMeasurement | ||
| from niscope.errors import Error | ||
|
|
||
| import nipanel | ||
|
|
||
| panel_script_path = Path(__file__).with_name("niscope_binary_acquisition_panel.py") | ||
| panel = nipanel.create_streamlit_panel(panel_script_path) | ||
|
|
||
|
|
||
| """Example fetch data from device (Dev1).""" | ||
| panel.set_value("is_running", False) | ||
| panel.set_value("run_button", False) | ||
|
|
||
| try: | ||
| panel.set_value("daq_error", "") | ||
DilmiWickramanayake marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| print(f"Panel URL: {panel.panel_url}") | ||
| print(f"Waiting for the 'Run' button to be pressed...") | ||
| print(f"(Press Ctrl + C to quit)") | ||
| while True: | ||
| panel.set_value("run_button", False) | ||
| while not panel.get_value("run_button", False): | ||
| time.sleep(0.1) | ||
| with niscope.Session(resource_name=panel.get_value("resource_name", "Dev1")) as session: | ||
| session.configure_vertical( | ||
| range=panel.get_value("vertical_range", 5.0), | ||
| coupling=niscope.VerticalCoupling.DC, | ||
| offset=panel.get_value("vertical_offset", 0.0), | ||
| ) | ||
| session.configure_horizontal_timing( | ||
| min_sample_rate=panel.get_value("min_sample_rate", 200000000.0), | ||
| min_num_pts=1000, | ||
| ref_position=50.0, | ||
| num_records=1000, | ||
| enforce_realtime=True, | ||
| ) | ||
|
|
||
| session.configure_trigger_immediate() | ||
|
|
||
| with session.initiate(): | ||
| data_size = panel.get_value("data_size", 8) | ||
| wfm: np.ndarray[Any, Any] | ||
|
|
||
| if data_size == 8: | ||
| wfm = np.ndarray(1000 * 1000, dtype=np.int8) | ||
|
|
||
| elif data_size == 16: | ||
| wfm = np.ndarray(1000 * 1000, dtype=np.int16) | ||
| else: | ||
| wfm = np.ndarray(1000 * 1000, dtype=np.int32) | ||
|
|
||
| waveforms = session.channels[panel.get_value("channel", 0)].fetch_into( | ||
DilmiWickramanayake marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| relative_to=niscope.FetchRelativeTo.READ_POINTER, | ||
| offset=0, | ||
| timeout=hightime.timedelta(seconds=5.0), | ||
| waveform=wfm, | ||
| ) | ||
|
|
||
| try: | ||
| panel.set_value("is_running", True) | ||
|
|
||
| panel.set_value("stop_button", False) | ||
| while not panel.get_value("stop_button", False): | ||
| wfm_info = session.channels[0].fetch_array_measurement( | ||
| array_meas_function=ArrayMeasurement.ADD_CHANNELS, | ||
| num_records=1000, | ||
| meas_num_samples=1000, | ||
| ) | ||
| gain = 0 | ||
| offset = 0 | ||
| for waveform in waveforms: | ||
| gain = waveform.gain | ||
| offset = waveform.offset | ||
| panel.set_value("gain_factor", gain) | ||
| panel.set_value("offset", offset) | ||
|
|
||
| for i in range(len(waveforms)): | ||
| if panel.get_value("stop_button", True): | ||
| break | ||
| else: | ||
| time.sleep(0.1) | ||
| binary_data = waveforms[i].samples.tolist() | ||
| panel.set_value("binary_data", waveforms[i].samples.tolist()) | ||
|
|
||
| samples_array = np.array(binary_data) | ||
| voltage_values = samples_array * gain + offset | ||
| panel.set_value("scaled_voltage_data", voltage_values.tolist()) | ||
|
|
||
| actual_binary_data_size = session.binary_sample_width | ||
| panel.set_value("actual_binary_data_size", actual_binary_data_size) | ||
| except KeyboardInterrupt: | ||
| pass | ||
| finally: | ||
| panel.set_value("is_running", False) | ||
|
|
||
| except Error as e: | ||
| daq_error = str(e) | ||
| print(daq_error) | ||
| panel.set_value("daq_error", daq_error) | ||
|
|
||
| except KeyboardInterrupt: | ||
| pass | ||
192 changes: 192 additions & 0 deletions
192
examples/niscope/niscope_binary_acquisition/niscope_binary_acquisition_panel.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,192 @@ | ||
| """Streamlit visualization script to display data acquired by nidaqmx_analog_input_filtering.py.""" | ||
DilmiWickramanayake marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| import streamlit as st | ||
| from streamlit_echarts import st_echarts | ||
|
|
||
| import nipanel | ||
|
|
||
| st.set_page_config(page_title="NiSCOPE Binary", page_icon="📈", layout="wide") | ||
DilmiWickramanayake marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| st.title("NiScope Binary Acquisition") | ||
DilmiWickramanayake marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| panel = nipanel.get_streamlit_panel_accessor() | ||
|
|
||
| left_col, right_col = st.columns(2) | ||
|
|
||
|
|
||
| st.markdown( | ||
| """ | ||
| <style> | ||
| div.stNumberInput { | ||
| max-width: 190px !important; | ||
| } | ||
| div.stTextInput { | ||
| max-width: 190px !important; | ||
| } | ||
|
|
||
| div[data-baseweb="select"] { | ||
| width: 190px !important; /* Adjust the width as needed */ | ||
| } | ||
| </style> | ||
| <style> | ||
| iframe[title="streamlit_echarts.st_echarts"]{ height: 400px; width:100%;} | ||
| </style> | ||
| """, | ||
| unsafe_allow_html=True, | ||
| ) | ||
|
|
||
|
|
||
| with left_col: | ||
| with st.container(border=True): | ||
| if panel.get_value("is_running", False): | ||
| st.button(r"⏹️ Stop", key="stop_button") | ||
| elif not panel.get_value("is_running", False) and panel.get_value("daq_error", "") == "": | ||
| run_button = st.button(r"▶️ Run", key="run_button") | ||
| else: | ||
| st.error( | ||
| 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', '')}" | ||
DilmiWickramanayake marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ) | ||
|
|
||
| st.text_input( | ||
| label="Resource Name", | ||
| value="Dev1", | ||
| key="resource_name", | ||
DilmiWickramanayake marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| disabled=panel.get_value("is_running", False), | ||
| ) | ||
| st.number_input( | ||
| "Channel", | ||
| value=0, | ||
| step=1, | ||
| disabled=panel.get_value("is_running", False), | ||
| key="channel", | ||
| ) | ||
|
|
||
| st.title("Vertical") | ||
| st.number_input( | ||
| "Vertical Range(V)", | ||
| value=5.0, | ||
| step=1.0, | ||
| disabled=panel.get_value("is_running", False), | ||
| key="vertical_range", | ||
| ) | ||
| st.number_input( | ||
| "Vertical Offset", | ||
| value=0.0, | ||
| step=1.0, | ||
| disabled=panel.get_value("is_running", False), | ||
| key="vertical_offset", | ||
| ) | ||
| st.title("Horizontal") | ||
| st.number_input( | ||
| "Min Sample Rate", | ||
| value=20000000.0, | ||
| step=1.0, | ||
| disabled=panel.get_value("is_running", False), | ||
| key="min_sample_rate", | ||
| ) | ||
| st.number_input( | ||
| "Min Record Length", | ||
| value=1000, | ||
| step=1, | ||
| disabled=panel.get_value("is_running", False), | ||
| key="min_record_length", | ||
| ) | ||
| data_size = st.selectbox( | ||
| "Binary Data Size", | ||
| options=[8, 16, 32], | ||
| disabled=panel.get_value("is_running", False), | ||
| key="data_size", | ||
| ) | ||
| st.number_input( | ||
| "Actual Binary Data Size", | ||
| value=panel.get_value("actual_binary_data_size", 16), | ||
| step=1, | ||
| disabled=True, | ||
| key="actual_binary_data_size", | ||
| ) | ||
| st.title("Scaling Calculation") | ||
| st.number_input( | ||
| "Gain Factor", | ||
| value=panel.get_value("gain_factor", 0.0000), | ||
| step=0.0001, | ||
| disabled=True, | ||
| format="%.10f", | ||
| key="gain_factor", | ||
| ) | ||
| st.number_input( | ||
| "Offset", | ||
| value=panel.get_value("offset", 0.0000), | ||
| step=0.0001, | ||
| disabled=True, | ||
| key="offset", | ||
| ) | ||
|
|
||
|
|
||
| with right_col: | ||
| with st.container(border=True): | ||
| st.title("Binary Waveform Graph") | ||
| binary_data = panel.get_value("binary_data", [0]) | ||
|
|
||
| binary_graph = { | ||
| "animation": False, | ||
| "tooltip": {"trigger": "axis"}, | ||
| "legend": {"data": ["Amplitude (ADC Codes)"]}, | ||
| "xAxis": { | ||
| "type": "category", | ||
| "data": list(range(len(binary_data))), | ||
| "name": "Samples", | ||
| "nameLocation": "center", | ||
| "nameGap": 40, | ||
| }, | ||
| "yAxis": { | ||
| "type": "value", | ||
| "name": "Amplitude(ADC Codes)", | ||
| "nameRotate": 90, | ||
| "nameLocation": "center", | ||
| "nameGap": 40, | ||
| }, | ||
| "series": [ | ||
| { | ||
| "name": "niscope data", | ||
| "type": "line", | ||
| "data": binary_data, | ||
| "emphasis": {"focus": "series"}, | ||
| "smooth": True, | ||
| "seriesLayoutBy": "row", | ||
| }, | ||
| ], | ||
| } | ||
| st_echarts(options=binary_graph, height="400px", width="75%", key="binary_graph") | ||
| with st.container(border=True): | ||
| st.title("Scaled Voltage Graph") | ||
| scaled_voltage_data = panel.get_value("scaled_voltage_data", [0]) | ||
| scaled_voltage_graph = { | ||
| "animation": False, | ||
| "tooltip": {"trigger": "axis"}, | ||
| "legend": {"data": ["Amplitude (V)"]}, | ||
| "xAxis": { | ||
| "type": "category", | ||
| "data": list(range(len(scaled_voltage_data))), | ||
| "name": "Samples", | ||
| "nameLocation": "center", | ||
| "nameGap": 40, | ||
| }, | ||
| "yAxis": { | ||
| "type": "value", | ||
| "name": "Amplitude(V)", | ||
| "nameRotate": 90, | ||
| "nameLocation": "center", | ||
| "nameGap": 40, | ||
| }, | ||
| "series": [ | ||
| { | ||
| "name": "niscope data", | ||
| "type": "line", | ||
| "data": scaled_voltage_data, | ||
| "emphasis": {"focus": "series"}, | ||
| "smooth": True, | ||
| "seriesLayoutBy": "row", | ||
| }, | ||
| ], | ||
| } | ||
| st_echarts( | ||
| options=scaled_voltage_graph, height="400px", width="75%", key="scaled_voltage_graph" | ||
| ) | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.