This is an instrument for dSPACE ControlDesk to visualize power distribution.
- Get this repo
- Open ControlDesk and drag'n'drop a Browser Instrument into your Layout
- Enter the path of the power_dist.html-file into the Browser Instrument address bar
- 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"
- Open the Script-property and replace the default script by the content of the power_dist.py-script from this repo.
Powered by D3.js.