Skip to content

Commit 6c5bb44

Browse files
CanerIrfanoglurpkyle
authored andcommitted
DashR DAQ IV Tracer (plotly#275)
1 parent 4fe7ad5 commit 6c5bb44

File tree

13 files changed

+2518
-0
lines changed

13 files changed

+2518
-0
lines changed

apps/dashr-daq-iv-tracer/Aptfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
libcurl4-openssl-dev
2+
libxml2-dev
3+
libv8-3.14-dev
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web=1

apps/dashr-daq-iv-tracer/Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: R -f /app/apps/"$DASH_APP_NAME"/app.R

apps/dashr-daq-iv-tracer/README.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# DashR DAQ IV Curve Tracer
2+
3+
Dash abstracts away all of the technologies and protocols required to build an interactive web-based application, and
4+
is a simple and effective way to bind a user interface around your R or Python code. To learn more about Dash, check out our
5+
[documentation](https://dashr.plot.ly/).
6+
7+
## About the app
8+
9+
`dashr-daq-iv-tracer` uses the graphic elements of Dash DAQ to create an interface for acquiring current-voltage I-V curves with a Keithley 2400 SourceMeter.
10+
[Try this demo app](https://github.com/plotly/dash-sample-apps/tree/master/apps/dashr-daq-iv-tracer) on the Dash Deployment Server.
11+
12+
Also, you can access the Python version in the [Dash Gallery](https://dash-gallery.plotly.host/dash-daq-iv-tracer/).
13+
### IV Curves
14+
15+
I-V curve is a good way to characterize electronic components (diode, transistor or solar cells) and extract their operating properties. It is widely used in electrical engineering and physics.
16+
The Keithley 2400 SourceMeter provides precision voltage and current sourcing as well as measurement.
17+
18+
### dashr-daq
19+
20+
[Dash-DAQ](https://www.dashdaq.io/) is a data acquisition and control package built on top of Plotly's
21+
[Dash](https://plot.ly/products/dash/). It comprises a robust set of controls that make it simpler to integrate data
22+
acquisition and controls into your Dash applications.
23+
24+
## Getting Started
25+
26+
### Controls
27+
28+
- Single measurement mode: Adjust the value of the source with the knob at the bottom of the graph area and click on the `Single Measure` button, the measured value will be displayed. Repetition of this procedure for different source values will reveal the full IV curve.
29+
30+
- Sweep mode: Set the sweep parameters `start`, `stop` and `step` as well as the time spent on each step, then click on the button `Start Sweep`, the result of the sweep will be displayed on the graph. The data is never erased unless the button `Clear Graph` is pressed, or if the source type is changed.
31+
32+
- Dark/light theme: Click on theme toggle on top of the page to view dark/light layout.
33+
34+
### Running the app locally
35+
36+
Clone the git repo:
37+
38+
```
39+
git clone https://github.com/plotly/dash-sample-apps
40+
cd dash-sample-apps/apps/dashr-daq-iv-tracer
41+
```
42+
43+
Run `Rscript init.R` to install all of the required packages
44+
45+
Run `Rscript app.R`:
46+
47+
The app should automatically open in your default browser. If it does not, navigate to 127.0.0.1:8050. You should see something like this:
48+
49+
50+
## Screenshots
51+
52+
![IV Curve Tracer](screenshots/iv-tracer-screenshot.png)
53+
54+
![IV Curve Tracer](screenshots/iv-tracer-dark.png)
55+
56+
![animated](screenshots/iv-tracer-demo.gif)
57+

0 commit comments

Comments
 (0)