Skip to content

Commit

Permalink
STU-275 app gallery instruments (#1102)
Browse files Browse the repository at this point in the history
* Fix all Link | Split IO | Add PEAK, CANABLE, RIGOL, NI-cDAQ

* LeCroy and Better Name for Link

* Formatting

* Comments on Read CAN Message + Better Visualization

* Hardware First after intro

* Adding Basic Example for Tek & Pico scope

* Formatting

* Add DMM and 2450 examples

* prett

---------

Co-authored-by: dstrande <dstrande@live.ca>
  • Loading branch information
LatentDream and dstrande authored Feb 22, 2024
1 parent 933ea79 commit fbd294f
Show file tree
Hide file tree
Showing 23 changed files with 7,188 additions and 104 deletions.
Binary file added public/assets/appGallery/2450.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/appGallery/LeCroyT3DSO.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/appGallery/MS024DecodeI2C.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/appGallery/NIcDAQ.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/appGallery/canable-usb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/appGallery/dmm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/appGallery/mdo3ExtractTrace.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/appGallery/peak-usb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/appGallery/picoExtractTrace.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/appGallery/rigolExtractTrace.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/renderer/components/gallery/GalleryElement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const GalleryElement = ({
href={node.docs}
key={node.name}
target="_blank"
className="rounded-md bg-muted p-1 text-sm"
className="mr-2 rounded-md bg-muted p-1 text-sm"
>
{node.name}
</a>
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/gallery/GalleryModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const GalleryModal = ({
{Object.keys(filteredData).length ? (
Object.entries(filteredData).map(([k, v]) => (
<div key={k}>
<div className="text-3xl font-bold">{k}</div>
<div className="text-3xl font-bold">{k.replace("_", " ")}</div>
<Separator className="my-1" />
<div className="grid grid-cols-2">
{v.map((app) => (
Expand Down
322 changes: 322 additions & 0 deletions src/renderer/data/apps/IVSweep.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,322 @@
{
"rfInstance": {
"nodes": [
{
"width": 192,
"height": 192,
"id": "CONNECT_2450-72b8d59f-b577-4f92-b3df-705b3fc2cd06",
"type": "HARDWARE",
"data": {
"id": "CONNECT_2450-72b8d59f-b577-4f92-b3df-705b3fc2cd06",
"label": "CONNECT 2450",
"func": "CONNECT_2450",
"type": "HARDWARE",
"ctrls": {
"device": {
"type": "VisaDevice",
"default": null,
"desc": "The connected VISA device.",
"overload": null,
"functionName": "CONNECT_2450",
"param": "device",
"value": "TCPIP::169.254.175.123::INSTR"
}
},
"initCtrls": {},
"outputs": [
{
"name": "default",
"id": "default",
"type": "String",
"desc": "The IP or VISA address of the VISA device."
}
],
"pip_dependencies": [
{
"name": "tm_devices",
"v": "1.0"
}
],
"path": "HARDWARE/SOURCEMETERS/KEITHLEY/2450/CONNECT_2450/CONNECT_2450.py"
},
"position": {
"x": -672.9705519399253,
"y": -345.8676653985847
},
"selected": false,
"positionAbsolute": {
"x": -672.9705519399253,
"y": -345.8676653985847
},
"dragging": true
},
{
"width": 192,
"height": 192,
"id": "IV_SWEEP_2450-4e375cbe-903d-4b94-bda3-d17321ec8010",
"type": "HARDWARE",
"data": {
"id": "IV_SWEEP_2450-4e375cbe-903d-4b94-bda3-d17321ec8010",
"label": "IV SWEEP 2450",
"func": "IV_SWEEP_2450",
"type": "HARDWARE",
"ctrls": {
"connection": {
"type": "VisaConnection",
"default": null,
"desc": "The VISA address (requires the CONNECTION_2450 block).",
"overload": null,
"functionName": "IV_SWEEP_2450",
"param": "connection",
"value": "TCPIP::169.254.175.123::INSTR"
},
"sweep": {
"type": "select",
"options": ["voltage", "current"],
"default": "voltage",
"desc": "Select the sweep mode, the opposite unit is measured.",
"overload": null,
"functionName": "IV_SWEEP_2450",
"param": "sweep",
"value": "voltage"
},
"sense": {
"type": "select",
"options": ["2-wire", "4-wire"],
"default": "2-wire",
"desc": "Use 2 or 4 wire sense/measurement mode.",
"overload": null,
"functionName": "IV_SWEEP_2450",
"param": "sense",
"value": "2-wire"
},
"start": {
"type": "float",
"default": 0,
"desc": "The first x value of the sweep.",
"overload": null,
"functionName": "IV_SWEEP_2450",
"param": "start",
"value": 0
},
"stop": {
"type": "float",
"default": 1,
"desc": "The last x value of the sweep.",
"overload": null,
"functionName": "IV_SWEEP_2450",
"param": "stop",
"value": 1
},
"points": {
"type": "float",
"default": 100,
"desc": "The number of points between start and stop.",
"overload": null,
"functionName": "IV_SWEEP_2450",
"param": "points",
"value": 100
},
"measurement_time": {
"type": "float",
"default": 1,
"desc": "How long to measure a single point, in seconds.",
"overload": null,
"functionName": "IV_SWEEP_2450",
"param": "measurement_time",
"value": 1
},
"measurement_delay": {
"type": "float",
"default": 0.05,
"desc": "How long to delay between two points, in seconds.",
"overload": null,
"functionName": "IV_SWEEP_2450",
"param": "measurement_delay",
"value": 0.05
},
"y_limit": {
"type": "float",
"default": 1,
"desc": "The limit of the measured value.",
"overload": null,
"functionName": "IV_SWEEP_2450",
"param": "y_limit",
"value": 1
},
"source_range": {
"type": "float",
"default": 1,
"desc": "The range of the x value.",
"overload": null,
"functionName": "IV_SWEEP_2450",
"param": "source_range",
"value": 2
}
},
"initCtrls": {},
"inputs": [
{
"name": "input",
"id": "input",
"type": "Any",
"multiple": false,
"desc": null
}
],
"outputs": [
{
"name": "default",
"id": "default",
"type": "OrderedPair",
"desc": "Sweep values"
}
],
"pip_dependencies": [
{
"name": "tm_devices",
"v": "1.0"
}
],
"path": "HARDWARE/SOURCEMETERS/KEITHLEY/2450/IV_SWEEP_2450/IV_SWEEP_2450.py"
},
"position": {
"x": -378.6506972556997,
"y": -345.45165192434666
},
"selected": false,
"positionAbsolute": {
"x": -378.6506972556997,
"y": -345.45165192434666
},
"dragging": true
},
{
"width": 380,
"height": 293,
"id": "LINE-30feab30-6d4f-4274-8877-383382355e5f",
"type": "VISUALIZATION",
"data": {
"id": "LINE-30feab30-6d4f-4274-8877-383382355e5f",
"label": "LINE",
"func": "LINE",
"type": "VISUALIZATION",
"ctrls": {
"xaxis_title": {
"type": "str",
"default": "",
"desc": "Choose the label for the x axis.",
"overload": null,
"functionName": "LINE",
"param": "xaxis_title",
"value": ""
},
"yaxis_title": {
"type": "str",
"default": "",
"desc": "Choose the label for the y axis.",
"overload": null,
"functionName": "LINE",
"param": "yaxis_title",
"value": ""
},
"x_log_scale": {
"type": "bool",
"default": false,
"desc": null,
"overload": null,
"functionName": "LINE",
"param": "x_log_scale",
"value": false
},
"y_log_scale": {
"type": "bool",
"default": false,
"desc": null,
"overload": null,
"functionName": "LINE",
"param": "y_log_scale",
"value": false
}
},
"initCtrls": {},
"inputs": [
{
"name": "default",
"id": "default",
"type": "OrderedPair|DataFrame|Matrix|Vector",
"multiple": false,
"desc": "the DataContainer to be visualized"
}
],
"outputs": [
{
"name": "default",
"id": "default",
"type": "Plotly",
"desc": "the DataContainer containing the Plotly Line visualization of the input data"
}
],
"path": "DATA/VISUALIZATION/PLOTLY/LINE/LINE.py"
},
"position": {
"x": -49.74793183836513,
"y": -396.3301324465528
},
"selected": false,
"positionAbsolute": {
"x": -49.74793183836513,
"y": -396.3301324465528
},
"dragging": true
}
],
"edges": [
{
"source": "IV_SWEEP_2450-4e375cbe-903d-4b94-bda3-d17321ec8010",
"sourceHandle": "default",
"target": "LINE-30feab30-6d4f-4274-8877-383382355e5f",
"targetHandle": "default",
"id": "reactflow__edge-IV_SWEEP_2450-4e375cbe-903d-4b94-bda3-d17321ec8010default-LINE-30feab30-6d4f-4274-8877-383382355e5fdefault"
},
{
"source": "CONNECT_2450-72b8d59f-b577-4f92-b3df-705b3fc2cd06",
"sourceHandle": "default",
"target": "IV_SWEEP_2450-4e375cbe-903d-4b94-bda3-d17321ec8010",
"targetHandle": "input",
"id": "reactflow__edge-CONNECT_2450-72b8d59f-b577-4f92-b3df-705b3fc2cd06default-IV_SWEEP_2450-4e375cbe-903d-4b94-bda3-d17321ec8010input"
}
],
"viewport": {
"x": 994.2991122110108,
"y": 573.4932402039965,
"zoom": 0.9719556784888205
}
},
"textNodes": [
{
"id": "TextNode-1c9af5ae-81b7-437f-a108-1d85efbe8963",
"position": {
"x": -656.9814908380006,
"y": -115.55375134086628
},
"type": "TextNode",
"data": {
"text": "## This app performs a IV sweep where voltage is swept and the resulting current is measured. This is a useful technique for testing electrical components, such as diodes."
},
"width": 582,
"height": 161,
"selected": false,
"positionAbsolute": {
"x": -656.9814908380006,
"y": -115.55375134086628
},
"dragging": false,
"style": {
"width": 582,
"height": 161
},
"resizing": false
}
]
}
Loading

0 comments on commit fbd294f

Please sign in to comment.