https://github.com/dspace-group/power-distribution-instrument
This is an instrument for dSPACE ControlDesk to visualize power distribution.
https://github.com/dspace-group/power-distribution-instrument
Last synced: 3 months ago
JSON representation
This is an instrument for dSPACE ControlDesk to visualize power distribution.
- Host: GitHub
- URL: https://github.com/dspace-group/power-distribution-instrument
- Owner: dspace-group
- License: mit
- Created: 2023-07-15T06:26:49.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-06T06:09:03.000Z (over 1 year ago)
- Last Synced: 2023-10-27T09:31:23.120Z (over 1 year ago)
- Language: Python
- Size: 530 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# power-distribution-instrument
This is an instrument for [dSPACE ControlDesk](https://www.dspace.com/en/inc/home/products/sw/experimentandvisualization/controldesk.cfm) to visualize power distribution.
## ControlDesk: Build Power Distribution Instrument from scratch
1. Get this repo
2. Open ControlDesk and drag'n'drop a Browser Instrument into your Layout
3. Enter the path of the power_dist.html-file into the Browser Instrument address bar
4. Add custom properties to the Browser Instrument. To do so: Drag & drop the Browser Instrument into the Interpreter-pane. The Instrument gets converted into a line of Python code. This code returns an object that represents the Instrument. Use the Interpreter to add new custom properties. Your Interpreter-pane should look like the following:
```
bi = Application.LayoutManagement.Layouts["Layout1"].Instruments["Browser_5"]bi.CustomProperties.Add(3, "Number of Nodes").Category = "Power Distribution"
bi.CustomProperties.Add(3, "Number of Links").Category = "Power Distribution"
bi.CustomProperties.Add(1, "Unit").Category = "Power Distribution"
bi.CustomProperties.Add(3, "Digits").Category = "Power Distribution"
bi.CustomProperties.Add(3, "Min").Category = "Power Distribution"
bi.CustomProperties.Add(3, "Max").Category = "Power Distribution"
bi.CustomProperties.Add(3, "Width").Category = "Power Distribution"
bi.CustomProperties.Add(3, "Height").Category = "Power Distribution"
bi.CustomProperties.Add(3, "Padding").Category = "Power Distribution"
```
5. Open the Script-property and replace the default script by the content of the power_dist.py-script from this repo.## Acknowledgement
Powered by [D3.js](https://d3js.org/).