Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 48f4e8ed authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

electric motor form: plot graph with values as read from input (not how treated in vecto)

parent af9fd0a4
No related branches found
No related tags found
No related merge requests found
......@@ -390,7 +390,7 @@ Public Class ElectricMotorForm
If Not fullLoadCurve Is Nothing Then
Dim series As Series = New Series
series.Points.DataBindXY(fullLoadCurve.FullLoadEntries.Select(Function(x) x.MotorSpeed.AsRPM).ToArray(),
fullLoadCurve.FullLoadEntries.Select(Function(x) x.FullDriveTorque.Value()).ToArray())
fullLoadCurve.FullLoadEntries.Select(Function(x) -x.FullDriveTorque.Value()).ToArray())
series.ChartType = SeriesChartType.FastLine
series.BorderWidth = 2
series.Color = Color.DarkBlue
......@@ -399,7 +399,7 @@ Public Class ElectricMotorForm
series = New Series
series.Points.DataBindXY(fullLoadCurve.FullLoadEntries.Select(Function(x) x.MotorSpeed.AsRPM).ToArray(),
fullLoadCurve.FullLoadEntries.Select(Function(x) x.FullGenerationTorque.Value()).ToArray())
fullLoadCurve.FullLoadEntries.Select(Function(x) -x.FullGenerationTorque.Value()).ToArray())
series.ChartType = SeriesChartType.FastLine
series.BorderWidth = 2
series.Color = Color.Blue
......@@ -415,7 +415,7 @@ Public Class ElectricMotorForm
If Not fcMap Is Nothing Then
Dim series As Series = New Series
series.Points.DataBindXY(fcMap.Entries.Select(Function(x) x.MotorSpeed.AsRPM).ToArray(),
fcMap.Entries.Select(Function(x) x.Torque.Value()).ToArray())
fcMap.Entries.Select(Function(x) -x.Torque.Value()).ToArray())
series.ChartType = SeriesChartType.Point
series.MarkerSize = 3
series.Color = Color.Red
......@@ -426,7 +426,7 @@ Public Class ElectricMotorForm
If Not dragCurve Is Nothing Then
Dim series As Series = New Series
series.Points.DataBindXY(dragCurve.Entries.Select(Function(x) x.MotorSpeed.AsRPM).ToArray(),
dragCurve.Entries.Select(Function(x) x.DragTorque.Value()).ToArray())
dragCurve.Entries.Select(Function(x) -x.DragTorque.Value()).ToArray())
series.ChartType = SeriesChartType.FastLine
series.BorderWidth = 2
series.Color = Color.Green
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment