Public Member Functions | List of all members
EfficiencyMapPlot Class Reference

EfficiencyMapPlot class is used to specify the settings for an efficiency map plot.
The class can be called from the Study class.
. More...

Public Member Functions

void AddPoint (double x, double y)
 Adds the operating point of the efficiency map. More...
 
void AddPoints (String array &array)
 Adds the point sequence of multidimensional array for the operating point list of the efficiency map. More...
 
void AddPointsFromRange (double x_start, double x_end, int x_division, double y_start, double y_end, int y_division)
 Adds a ranged operating point. More...
 
void DeleteAllPoints ()
 Deletes all operating points of the efficiency map.
 
void DeletePoint (int index)
 Deletes the operating point of the efficiency map. More...
 
void DuplicateStudyWithOperatingPoint (String &filename=String(), bool movePoint=false, double tolerance=0.0, int inductanceType=0, double speed=0.0, double torque=0.0)
 Creates an accuracy priority efficiency map study that includes the operating point taken from the study. More...
 
void DuplicateStudyWithOperatingPointFromRange (double x_start, double x_end, int x_division, double y_start, double y_end, int y_division, String &filename=String(), bool movePoint=false, double tolerance=0.0, int inductanceType=0, double speed=0.0, double torque=0.0)
 Creates an accuracy priority efficiency map study that includes the operating point with a specified range taken from the study. More...
 
void DuplicateStudyWithOperatingPointFromRangeTemp (double x_start, double x_end, int x_division, double y_start, double y_end, int y_division, String &filename, bool movePoint, double tolerance, int inductanceType, double speed, double torque, double temp1, double temp2, double voltage=0.0)
 Creates an accuracy priority efficiency map study that includes the operating point with a specified range taken from the study. More...
 
void DuplicateStudyWithOperatingPointTemp (String &filename, bool movePoint, double tolerance, int inductanceType, double speed, double torque, double temp1, double temp2, double voltage=0.0)
 Creates an accuracy priority efficiency map study that includes the operating point taken from the study. More...
 
void ExportClusterPointData (int type, String &filename, double temp1=0.0, double temp2=0.0, double voltage=0.0)
 Exports the result of the efficiency map drive cycle cluster points. More...
 
void ExportData (Variant &type, String &filename, double temp1=0.0, double temp2=0.0, double voltage=0.0)
 Exports the result of the efficiency map operating point ([CSV Export] in the [Efficiency Map] dialog). More...
 
void ExportDataFromRange (Variant &type, String &filename, double x_start, double x_end, int x_division, double y_start, double y_end, int y_division, double temp1=0.0, double temp2=0.0, double voltage=0.0)
 Exports the result of the efficiency map operating point with a range. More...
 
void ExportDriveCycleData (int type, String &filename, double temp1=0.0, double temp2=0.0, double voltage=0.0)
 Exports the result of the efficiency map drive cycle. More...
 
void ExportOperatingPoint (String &filename, bool movePoint=false, double tolerance=0.0)
 Exports the operating point information of the efficiency map. More...
 
void ExportOperatingPointFromRange (String &filename, double x_start, double x_end, int x_division, double y_start, double y_end, int y_division, bool movePoint=false, double tolerance=0.0)
 Exports the operating point information of the efficiency map with a specified range. More...
 
void ExportOperatingPointFromRangeTemp (String &filename, double x_start, double x_end, int x_division, double y_start, double y_end, int y_division, bool movePoint=false, double tolerance=0.0, double temp1=0.0, double temp2=0.0, double voltage=0.0)
 Exports the operating point information of the efficiency map with a specified range (Temperature specification). More...
 
void ExportOperatingPointTemp (String &filename, bool movePoint=false, double tolerance=0.0, double temp1=0.0, double temp2=0.0, double voltage=0.0)
 Exports the operating point information of the efficiency map (Temperature specification). More...
 
void ExportRttFile (bool overWrite, String &filename, double arbitraryTemp, double coil, int x_division, int y_division, double voltage, double current, bool publish, bool copySimulatorFiles=false)
 Exports the rtt file. More...
 
void ExportTorqueTable (String &filename, double start, double end, int division, bool motorMode, double temp1=0.0, double temp2=0.0, double voltage=0.0)
 Exports the torque table of the efficiency map operating point with a range. More...
 
String GetName ()
 Returns the name of the efficiency map plot as a string. More...
 
double GetPointResult (Variant &type, double x, double y, double temp1=0.0, double temp2=0.0, double voltage=0.0)
 Returns the result value for specified type at specified operating point of the efficiency map. More...
 
Variant GetProperty (String &propName, int displayType=TEfficiencyMapProperty::kMap, int type=ResponseDatabase::TOperatingPoint::kEfficiency)
 Returns setting for a specified item. More...
 
double GetResultMaxXValue (double temp1=0.0, double temp2=0.0, double voltage=0.0)
 Returns the maximum value of the efficiency map X-axis. More...
 
double GetResultMaxYValue (double temp1=0.0, double temp2=0.0, double voltage=0.0)
 Returns the maximum value of the efficiency map Y-axis. More...
 
double GetResultMinXValue (double temp1=0.0, double temp2=0.0, double voltage=0.0)
 Returns the minimum value of the efficiency map X-axis. More...
 
double GetResultMinYValue (double temp1=0.0, double temp2=0.0, double voltage=0.0)
 Returns the minimum value of the efficiency map Y-axis. More...
 
int GetResultType (int index)
 Returns the result type of the efficiency map. More...
 
String GetResultTypeName (int index)
 Returns the result type name of the efficiency map. More...
 
int GetResultXDivisions (double temp1=0.0, double temp2=0.0, double voltage=0.0)
 Returns the number of X-axis divisions of the efficiency map. 0 is returned for the Accuracy Priority mode. More...
 
int GetResultYDivisions (double temp1=0.0, double temp2=0.0, double voltage=0.0)
 Returns the number of Y-axis divisions of the efficiency map. 0 is returned for the Accuracy Priority mode. More...
 
double GetTorqueTableResult (String &type, double speed, double temp1=0.0, double temp2=0.0, double voltage=0.0)
 Returns the torque table value for the specified result type in the efficiency map. More...
 
virtual bool IsValid ()
 Returns True if an object is valid. More...
 
bool IsValidPoint (double x, double y, double temp1=0.0, double temp2=0.0, double voltage=0.0)
 Returns whether the point is a valid point in the efficiency map. More...
 
int NTCurveDivisions ()
 Returns the number of divisions in the NT curve settings of the efficiency map. More...
 
double NTCurveEndValue ()
 Returns the end value of the NT curve setting of the efficiency map. More...
 
double NTCurveInitialValue ()
 Returns the initial value of the NT curve setting of the efficiency map. More...
 
int NTCurveMotorMode ()
 Returns the motor mode of the NT curve setting of the efficiency map. More...
 
int NumResults ()
 Returns the number of result types in the efficiency map. More...
 
bool SaveMapImage (Variant &type, String &filename, int width, int height, int displayType=0, double temp1=0.0, double temp2=0.0, double voltage=0.0)
 Saves a map image with a specified size. More...
 
void SetName (String &name)
 Specifies the name of the efficiency map plot. More...
 
void SetNTCurveDivisions (Variant &value)
 Specifies the number of divisions in the NT curve settings of the efficiency map. More...
 
void SetNTCurveEndValue (Variant &value)
 Specifies the end value of the NT curve setting of the efficiency map. More...
 
void SetNTCurveInitialValue (Variant &value)
 Specifies the initial value of the NT curve setting of the efficiency map. More...
 
void SetNTCurveMotorMode (Variant &value)
 Specifies the motor mode for the NT curve settings in the efficiency map. More...
 
void SetProperty (String &propName, Variant &var, int displayType=TEfficiencyMapProperty::kMap, int type=ResponseDatabase::TOperatingPoint::kEfficiency)
 Specifies the efficiency map properties. More...
 
void ShowDialog (Variant &type)
 Opens the map dialog and selects the given type. More...
 

Detailed Description

EfficiencyMapPlot class is used to specify the settings for an efficiency map plot.
The class can be called from the Study class.
.

Example of calling the class object:

app.GetModel(0).GetStudy(0).GetEfficiencyMapPlot(0)

Member Function Documentation

void EfficiencyMapPlot::AddPoint ( double  x,
double  y 
)

Adds the operating point of the efficiency map.

Parameters
xX coordinate
yY coordinate
void EfficiencyMapPlot::AddPoints ( String array &  array)

Adds the point sequence of multidimensional array for the operating point list of the efficiency map.

Parameters
arrayMultidimensional array
void EfficiencyMapPlot::AddPointsFromRange ( double  x_start,
double  x_end,
int  x_division,
double  y_start,
double  y_end,
int  y_division 
)

Adds a ranged operating point.

Parameters
x_startX-axis initial value
x_endX-axis end value
x_divisionX-axis number of divisions
y_startY-axis initial value
y_endY-axis end value
y_divisionY-axis number of divisions
void EfficiencyMapPlot::DeletePoint ( int  index)

Deletes the operating point of the efficiency map.

Parameters
indexIndex
void EfficiencyMapPlot::DuplicateStudyWithOperatingPoint ( String &  filename = String(),
bool  movePoint = false,
double  tolerance = 0.0,
int  inductanceType = 0,
double  speed = 0.0,
double  torque = 0.0 
)

Creates an accuracy priority efficiency map study that includes the operating point taken from the study.

Parameters
filenameFile name to use scriptfile(*.py)
movePointMoves or adds an operating point on the N-T curve with the specified X coordinate value
toleranceMovement tolerance
inductanceTypeAdditional type of inductance equation
speedSpeed
torqueTorque
void EfficiencyMapPlot::DuplicateStudyWithOperatingPointFromRange ( double  x_start,
double  x_end,
int  x_division,
double  y_start,
double  y_end,
int  y_division,
String &  filename = String(),
bool  movePoint = false,
double  tolerance = 0.0,
int  inductanceType = 0,
double  speed = 0.0,
double  torque = 0.0 
)

Creates an accuracy priority efficiency map study that includes the operating point with a specified range taken from the study.

Parameters
x_startX-axis initial value
x_endX-axis end value
x_divisionX-axis number of divisions
y_startY-axis initial value
y_endY-axis end value
y_divisionY-axis number of divisions
filenameFile name to use scriptfile(*.py)
movePointMoves or adds an operating point on the N-T curve with the specified X coordinate value
toleranceMovement tolerance
inductanceTypeAdditional type of inductance equation
speedSpeed
torqueTorque
void EfficiencyMapPlot::DuplicateStudyWithOperatingPointFromRangeTemp ( double  x_start,
double  x_end,
int  x_division,
double  y_start,
double  y_end,
int  y_division,
String &  filename,
bool  movePoint,
double  tolerance,
int  inductanceType,
double  speed,
double  torque,
double  temp1,
double  temp2,
double  voltage = 0.0 
)

Creates an accuracy priority efficiency map study that includes the operating point with a specified range taken from the study.

Parameters
x_startX-axis initial value
x_endX-axis end value
x_divisionX-axis number of divisions
y_startY-axis initial value
y_endY-axis end value
y_divisionY-axis number of divisions
filenameFile name to use scriptfile(*.py)
movePointMoves or adds an operating point on the N-T curve with the specified X coordinate value
toleranceMovement tolerance
inductanceTypeAdditional type of inductance equation
speedSpeed
torqueTorque
temp1Temperature specification(PMSM/SyncRM:Manget, WFSM:Coil)
temp2Temperature specification(PMSM/SyncRM:Coil, WFSM:Field Coil)
voltageVoltage specification
void EfficiencyMapPlot::DuplicateStudyWithOperatingPointTemp ( String &  filename,
bool  movePoint,
double  tolerance,
int  inductanceType,
double  speed,
double  torque,
double  temp1,
double  temp2,
double  voltage = 0.0 
)

Creates an accuracy priority efficiency map study that includes the operating point taken from the study.

Parameters
filenameFile name to use scriptfile(*.py)
movePointMoves or adds an operating point on the N-T curve with the specified X coordinate value
toleranceMovement tolerance
inductanceTypeAdditional type of inductance equation
speedSpeed
torqueTorque
temp1Temperature specification(PMSM/SyncRM:Manget, WFSM:Coil)
temp2Temperature specification(PMSM/SyncRM:Coil, WFSM:Field Coil)
voltageVoltage specification
void EfficiencyMapPlot::ExportClusterPointData ( int  type,
String &  filename,
double  temp1 = 0.0,
double  temp2 = 0.0,
double  voltage = 0.0 
)

Exports the result of the efficiency map drive cycle cluster points.

Parameters
typeResult type
filenameFile name to output
temp1Temperature specification(PMSM/SyncRM:Manget, WFSM:Coil)
temp2Temperature specification(PMSM/SyncRM:Coil, WFSM:Field Coil)
voltageVoltage specification

For more information about the result type, see GetPointResult() .

void EfficiencyMapPlot::ExportData ( Variant &  type,
String &  filename,
double  temp1 = 0.0,
double  temp2 = 0.0,
double  voltage = 0.0 
)

Exports the result of the efficiency map operating point ([CSV Export] in the [Efficiency Map] dialog).

Parameters
typeResult type
filenameFile name to output
temp1Temperature specification(PMSM/SyncRM:Manget, WFSM:Coil)
temp2Temperature specification(PMSM/SyncRM:Coil, WFSM:Field Coil)
voltageVoltage specification

For more information about the result type, see GetPointResult .

void EfficiencyMapPlot::ExportDataFromRange ( Variant &  type,
String &  filename,
double  x_start,
double  x_end,
int  x_division,
double  y_start,
double  y_end,
int  y_division,
double  temp1 = 0.0,
double  temp2 = 0.0,
double  voltage = 0.0 
)

Exports the result of the efficiency map operating point with a range.

Parameters
typeResult type
filenameFile name to output
x_startX-axis initial value
x_endX-axis end value
x_divisionX-axis number of divisions
y_startY-axis initial value
y_endY-axis end value
y_divisionY-axis number of divisions
temp1Temperature specification(PMSM/SyncRM:Manget, WFSM:Coil)
temp2Temperature specification(PMSM/SyncRM:Coil, WFSM:Field Coil)
voltageVoltage specification

For more information about the result type, see GetPointResult .

void EfficiencyMapPlot::ExportDriveCycleData ( int  type,
String &  filename,
double  temp1 = 0.0,
double  temp2 = 0.0,
double  voltage = 0.0 
)

Exports the result of the efficiency map drive cycle.

Parameters
typeResult type
filenameFile name to output
temp1Temperature specification(PMSM/SyncRM:Manget, WFSM:Coil)
temp2Temperature specification(PMSM/SyncRM:Coil, WFSM:Field Coil)
voltageVoltage specification

For more information about the result type, see GetPointResult() .

void EfficiencyMapPlot::ExportOperatingPoint ( String &  filename,
bool  movePoint = false,
double  tolerance = 0.0 
)

Exports the operating point information of the efficiency map.

Parameters
filenameFile name to output
movePointMoves or adds an operating point on the N-T curve with the specified X coordinate value
toleranceMovement tolerance
void EfficiencyMapPlot::ExportOperatingPointFromRange ( String &  filename,
double  x_start,
double  x_end,
int  x_division,
double  y_start,
double  y_end,
int  y_division,
bool  movePoint = false,
double  tolerance = 0.0 
)

Exports the operating point information of the efficiency map with a specified range.

Parameters
filenameFile name to output
x_startX-axis initial value
x_endX-axis end value
x_divisionX-axis number of divisions
y_startY-axis initial value
y_endY-axis end value
y_divisionY-axis number of divisions
movePointMoves or adds an operating point on the N-T curve with the specified X coordinate value
toleranceMovement tolerance
void EfficiencyMapPlot::ExportOperatingPointFromRangeTemp ( String &  filename,
double  x_start,
double  x_end,
int  x_division,
double  y_start,
double  y_end,
int  y_division,
bool  movePoint = false,
double  tolerance = 0.0,
double  temp1 = 0.0,
double  temp2 = 0.0,
double  voltage = 0.0 
)

Exports the operating point information of the efficiency map with a specified range (Temperature specification).

Parameters
filenameFile name to output
x_startX-axis initial value
x_endX-axis end value
x_divisionX-axis number of divisions
y_startY-axis initial value
y_endY-axis end value
y_divisionY-axis number of divisions
movePointMoves or adds an operating point on the N-T curve with the specified X coordinate value
toleranceMovement tolerance
temp1Temperature specification(PMSM/SyncRM:Manget, WFSM:Coil)
temp2Temperature specification(PMSM/SyncRM:Coil, WFSM:Field Coil)
voltageVoltage specification
void EfficiencyMapPlot::ExportOperatingPointTemp ( String &  filename,
bool  movePoint = false,
double  tolerance = 0.0,
double  temp1 = 0.0,
double  temp2 = 0.0,
double  voltage = 0.0 
)

Exports the operating point information of the efficiency map (Temperature specification).

Parameters
filenameFile name to output
movePointMoves or adds an operating point on the N-T curve with the specified X coordinate value
toleranceMovement tolerance
temp1Temperature specification(PMSM/SyncRM:Manget, WFSM:Coil)
temp2Temperature specification(PMSM/SyncRM:Coil, WFSM:Field Coil)
voltageVoltage specification
void EfficiencyMapPlot::ExportRttFile ( bool  overWrite,
String &  filename,
double  magnet,
double  coil,
int  x_division,
int  y_division,
double  voltage,
double  current,
bool  publish,
bool  copySimulatorFiles = false 
)

Exports the rtt file.

Parameters
overWriteOverwrite exist file
filenameFile name to output
magnetMagnet temperature
coilCoil temperature
x_divisionDivisions of x-axis
y_divisionDivisions of y-axis
voltageMax voltage
currentMax current
publishPublish efficiency map information
copySimulatorFilesCopy simulator files
void EfficiencyMapPlot::ExportTorqueTable ( String &  filename,
double  start,
double  end,
int  division,
bool  motorMode,
double  temp1 = 0.0,
double  temp2 = 0.0,
double  voltage = 0.0 
)

Exports the torque table of the efficiency map operating point with a range.

Parameters
filenameFile name to output
startSpeed initial value
endSpeed end value
divisionSpeed number of divisions
motorMotor mode
temp1Temperature specification(PMSM/SyncRM:Manget, WFSM:Coil)
temp2Temperature specification(PMSM/SyncRM:Coil, WFSM:Field Coil)
voltageVoltage specification
String EfficiencyMapPlot::GetName ( )

Returns the name of the efficiency map plot as a string.

Returns
Name of the efficiency map plot
double EfficiencyMapPlot::GetPointResult ( Variant &  type,
double  x,
double  y,
double  temp1 = 0.0,
double  temp2 = 0.0,
double  voltage = 0.0 
)

Returns the result value for specified type at specified operating point of the efficiency map.

Parameters
typeResult type
Item name Description
RotationSpeed Speed
Slip Slip
Efficiency Efficiency
AverageTorque Torque
TorqueRipple Torque Ripple
OutputPower Output Power
PowerFactor Power Factor
PowerFactor2 Power Factor 2
Current Current
Id Current (Id)
Iq Current (Iq)
Voltage Voltage
Vd Voltage (Vd)
Vq Voltage (Vq)
Vd2 Voltage (Vd 2)
Vq2 Voltage (Vq 2)
TotalLoss Total Loss
IronLoss Iron Loss
JouleLoss Eddy Current Loss (Iron Loss)
HysteresisLoss Hysteresis Loss (Iron Loss)
ClassicalEddyLoss Classical Eddy Current Loss (Iron Loss)
ExcessEddyLoss Excess Eddy Current Loss (Iron Loss)
PwmJouleLoss PWM Eddy Current Loss (Iron Loss)
CopperLoss Copper Loss
StatorCopperLoss Stator Copper Loss
RotorCopperLoss Rotor Copper Loss
AcJouleLoss AC Copper Loss
MechanicalLoss Mechanical Loss
StrayLoss Stray Loss
CircuitLoss Circuit Loss
DirectAxisFlux Flux (d-Axis)
QuadratureAxisFlux Flux (q-Axis)
DirectAxisFlux2 Flux (d-Axis 2)
QuadratureAxisFlux2 Flux (q-Axis 2)
Phase Load Angle
UserParameter User Parameter

If you use the UserParameters, add the index number.
Example:
SetEfficiencyResultType("var", "UserParameter1");
xX-coordinate
yY-coordinate
temp1Temperature specification(PMSM/SyncRM:Manget, WFSM:Coil)
temp2Temperature specification(PMSM/SyncRM:Coil, WFSM:Field Coil)
voltageVoltage specification
Returns
Result value for specified type
Variant EfficiencyMapPlot::GetProperty ( String &  name,
int  displayType = TEfficiencyMapProperty::kMap,
int  type = ResponseDatabase::TOperatingPoint::kEfficiency 
)

Returns setting for a specified item.

Parameters
nameItem name

Item name Description
XMaxDefault Default use flag for maximum value of X-axis
XMaxRange Maximum value of X-axis
XMinDefault Default use flag for minimum value of X-axis
XMinRange Minimum value of X-axis
LeftYMaxDefault Default use flag for maximum value of Y-axis (left)
LeftYMaxRange Maximum value of Y-axis (left)
LeftYMinDefault Default use flag for minimum value of Y-axis (left)
LeftYMinRange Minimum value of Y-axis (left)
RightYMaxDefault Default use flag for maximum value of Y-axis (right)
RightYMaxRange Maximum value of Y-axis (right)
RightYMinDefault Default use flag for minimum value of Y-axis (right)
RightYMinRange Minimum value of Y-axis (right) is used
XPlotTitleDefault Default use flag for X-axis title
XPlotTitleName X-axis title
LeftYPlotTitleDefault Default use flag for Y-axis (left) title
LeftYPlotTitleName Y-axis (left) title
RightYPlotTitleDefault Default use flag for Y-axis (right) title
RightYPlotTitleName Y-axis (right) title
GridLine Grid type
XPrecision Number of significant figures for X-axis
LeftYPrecision Number of significant figures for Y-axis (left)
RightYPrecision Number of significant figures for Y-axis (right)
XMajorTicksDefault Default use flag for major tick marks of X-Axis
XMajorTicks Number of major tick marks for the X-axis
LeftYMajorTicksDefault Default use flag for major tick marks of Y-Axis (left)
LeftYMajorTicks Number of major tick marks for the Y-Axis (left)
XMinorTicksDefault Default use flag for minor tick marks of X-Axis
XMinorTicks Number of minor tick marks for the X-axis
LeftYMinorTicksDefault Default use flag for minor tick marks of Y-Axis (left)
LeftYMinorTicks Number of minor tick marks for the Y-Axis (left)
SmoothShaded Smooth or color band
Gradient Color gradation type
NumLevels Number of levels
NumLabelsDefault Default use flag for labels of Y-axis (right)
NumLabels Number of labels for Y-axis (right)
ShowIsoLines Isolines display flag
ShowLables Value display flag
NumLabelPrecision Number of precision value for display value

displayTypeDisplay Type
typeResult Type
Returns
Value of specified item
double EfficiencyMapPlot::GetResultMaxXValue ( double  temp1 = 0.0,
double  temp2 = 0.0,
double  voltage = 0.0 
)

Returns the maximum value of the efficiency map X-axis.

Parameters
temp1Temperature specification(PMSM/SyncRM:Manget, WFSM:Coil)
temp2Temperature specification(PMSM/SyncRM:Coil, WFSM:Field Coil)
voltageVoltage specification
Returns
X-axis maximum value
double EfficiencyMapPlot::GetResultMaxYValue ( double  temp1 = 0.0,
double  temp2 = 0.0,
double  voltage = 0.0 
)

Returns the maximum value of the efficiency map Y-axis.

Parameters
temp1Temperature specification(PMSM/SyncRM:Manget, WFSM:Coil)
temp2Temperature specification(PMSM/SyncRM:Coil, WFSM:Field Coil)
voltageVoltage specification
Returns
Y-axis maximum value
double EfficiencyMapPlot::GetResultMinXValue ( double  temp1 = 0.0,
double  temp2 = 0.0,
double  voltage = 0.0 
)

Returns the minimum value of the efficiency map X-axis.

Parameters
temp1Temperature specification(PMSM/SyncRM:Manget, WFSM:Coil)
temp2Temperature specification(PMSM/SyncRM:Coil, WFSM:Field Coil)
voltageVoltage specification
Returns
X-axis minimum value
double EfficiencyMapPlot::GetResultMinYValue ( double  temp1 = 0.0,
double  temp2 = 0.0,
double  voltage = 0.0 
)

Returns the minimum value of the efficiency map Y-axis.

Parameters
temp1Temperature specification(PMSM/SyncRM:Manget, WFSM:Coil)
temp2Temperature specification(PMSM/SyncRM:Coil, WFSM:Field Coil)
voltageVoltage specification
Returns
Y-axis minimum value
int EfficiencyMapPlot::GetResultType ( int  index)

Returns the result type of the efficiency map.

Parameters
indexIndex
Returns
Result type
String EfficiencyMapPlot::GetResultTypeName ( int  index)

Returns the result type name of the efficiency map.

Parameters
indexIndex
Returns
Result type name
int EfficiencyMapPlot::GetResultXDivisions ( double  temp1 = 0.0,
double  temp2 = 0.0,
double  voltage = 0.0 
)

Returns the number of X-axis divisions of the efficiency map. 0 is returned for the Accuracy Priority mode.

Parameters
temp1Temperature specification(PMSM/SyncRM:Manget, WFSM:Coil)
temp2Temperature specification(PMSM/SyncRM:Coil, WFSM:Field Coil)
voltageVoltage specification
Returns
X-axis division number
int EfficiencyMapPlot::GetResultYDivisions ( double  temp1 = 0.0,
double  temp2 = 0.0,
double  voltage = 0.0 
)

Returns the number of Y-axis divisions of the efficiency map. 0 is returned for the Accuracy Priority mode.

Parameters
temp1Temperature specification(PMSM/SyncRM:Manget, WFSM:Coil)
temp2Temperature specification(PMSM/SyncRM:Coil, WFSM:Field Coil)
voltageVoltage specification
Returns
Y-axis division number
double EfficiencyMapPlot::GetTorqueTableResult ( String &  type,
double  speed,
double  temp1 = 0.0,
double  temp2 = 0.0,
double  voltage = 0.0 
)

Returns the torque table value for the specified result type in the efficiency map.

Parameters
typeResult type
Item name Description
torque Torque
id Current (Id)
iq Current (Iq)
iam Current amplitude
phase Current phase
slip Slip
output power Output power

speedSpeed
temp1Temperature specification(PMSM/SyncRM:Manget, WFSM:Coil)
temp2Temperature specification(PMSM/SyncRM:Coil, WFSM:Field Coil)
voltageVoltage specification
Returns
Result value for specified type
bool EfficiencyMapPlot::IsValid ( )
virtual

Returns True if an object is valid.

Returns
Whether or not the EfficiencyMapPlot object is valid
bool EfficiencyMapPlot::IsValidPoint ( double  x,
double  y,
double  temp1 = 0.0,
double  temp2 = 0.0,
double  voltage = 0.0 
)

Returns whether the point is a valid point in the efficiency map.

Parameters
xX-coordinate
yY-coordinate
temp1Temperature specification(PMSM/SyncRM:Manget, WFSM:Coil)
temp2Temperature specification(PMSM/SyncRM:Coil, WFSM:Field Coil)
voltageVoltage specification
Returns
Whether point is valid
int EfficiencyMapPlot::NTCurveDivisions ( )

Returns the number of divisions in the NT curve settings of the efficiency map.

Returns
Number of divisions
double EfficiencyMapPlot::NTCurveEndValue ( )

Returns the end value of the NT curve setting of the efficiency map.

Returns
End value
double EfficiencyMapPlot::NTCurveInitialValue ( )

Returns the initial value of the NT curve setting of the efficiency map.

Returns
Initial value
int EfficiencyMapPlot::NTCurveMotorMode ( )

Returns the motor mode of the NT curve setting of the efficiency map.

motor
generation
Returns
Motor mode
int EfficiencyMapPlot::NumResults ( )

Returns the number of result types in the efficiency map.

Returns
Number of result types
bool EfficiencyMapPlot::SaveMapImage ( Variant &  type,
String &  filename,
int  width,
int  height,
int  displayType = 0,
double  temp1 = 0.0,
double  temp2 = 0.0,
double  voltage = 0.0 
)

Saves a map image with a specified size.

Parameters
typeResult type
filenameFile path (jpeg, png, bmp, svg)
widthWidth of the image
heightHeight of the image
displayTypeDisplay Type
temp1Temperature specification(PMSM/SyncRM:Manget, WFSM:Coil)
temp2Temperature specification(PMSM/SyncRM:Coil, WFSM:Field Coil)
voltageVoltage specification
Returns
Whether or not a graph image is saved

For more information about the result type, see GetPointResult() .

void EfficiencyMapPlot::SetName ( String &  name)

Specifies the name of the efficiency map plot.

Parameters
nameName of the efficiency map plot
void EfficiencyMapPlot::SetNTCurveDivisions ( Variant &  value)

Specifies the number of divisions in the NT curve settings of the efficiency map.

Parameters
valueDivisions
void EfficiencyMapPlot::SetNTCurveEndValue ( Variant &  value)

Specifies the end value of the NT curve setting of the efficiency map.

Parameters
valueEnd value
void EfficiencyMapPlot::SetNTCurveInitialValue ( Variant &  value)

Specifies the initial value of the NT curve setting of the efficiency map.

Parameters
valueInitial value
void EfficiencyMapPlot::SetNTCurveMotorMode ( Variant &  value)

Specifies the motor mode for the NT curve settings in the efficiency map.

motor
generation
Parameters
valueMotor mode
void EfficiencyMapPlot::SetProperty ( String &  propName,
Variant &  var,
int  displayType = TEfficiencyMapProperty::kMap,
int  type = ResponseDatabase::TOperatingPoint::kEfficiency 
)

Specifies the efficiency map properties.

Parameters
nameItem name

Item name Description
XMaxDefault Default use flag for maximum value of X-axis
XMaxRange Maximum value of X-axis
XMinDefault Default use flag for minimum value of X-axis
XMinRange Minimum value of X-axis
LeftYMaxDefault Default use flag for maximum value of Y-axis (left)
LeftYMaxRange Maximum value of Y-axis (left)
LeftYMinDefault Default use flag for minimum value of Y-axis (left)
LeftYMinRange Minimum value of Y-axis (left)
RightYMaxDefault Default use flag for maximum value of Y-axis (right)
RightYMaxRange Maximum value of Y-axis (right)
RightYMinDefault Default use flag for minimum value of Y-axis (right)
RightYMinRange Minimum value of Y-axis (right) is used
XPlotTitleDefault Default use flag for X-axis title
XPlotTitleName X-axis title
LeftYPlotTitleDefault Default use flag for Y-axis (left) title
LeftYPlotTitleName Y-axis (left) title
RightYPlotTitleDefault Default use flag for Y-axis (right) title
RightYPlotTitleName Y-axis (right) title
GridLine Grid type
XPrecision Number of significant figures for X-axis
LeftYPrecision Number of significant figures for Y-axis (left)
RightYPrecision Number of significant figures for Y-axis (right)
XMajorTicksDefault Default use flag for major tick marks of X-Axis
XMajorTicks Number of major tick marks for the X-axis
LeftYMajorTicksDefault Default use flag for major tick marks of Y-Axis (left)
LeftYMajorTicks Number of major tick marks for the Y-Axis (left)
XMinorTicksDefault Default use flag for minor tick marks of X-Axis
XMinorTicks Number of minor tick marks for the X-axis
LeftYMinorTicksDefault Default use flag for minor tick marks of Y-Axis (left)
LeftYMinorTicks Number of minor tick marks for the Y-Axis (left)
SmoothShaded Smooth or color band
Gradient Color gradation type
NumLevels Number of levels
NumLabelsDefault Default use flag for labels of Y-axis (right)
NumLabels Number of labels for Y-axis (right)
ShowIsoLines Isolines display flag
ShowLables Value display flag
NumLabelPrecision Number of precision value for display value

varValue

Flag type parameter
ON: True, OFF: False

SmoothShaded
Smooth: True, color band: False

Gradient
"purple-red", "cmr", "grayscale"

GridLine
Value Description
0 Grid is not displayed
1 Grid is displayed
2 Major and minor grid lines are displayed

displayTypeDisplay Type
typeResult Type
bool EfficiencyMapPlot::ShowDialog ( Variant &  type)

Opens the map dialog and selects the given type.

Parameters
typeResult type

For more information about the result type, see GetPointResult .