SetMinMaxUseTag method (XY Plot object)
Uses tags to set the minimum and maximum values of a trace.
Syntax
XYPlot1
.SetMinMaxUseTag
(xTagName
, yTagName
, [xMinTagName
], [xMaxTagName
], [yMinTagName
], [yMaxTagName
], [xModelName
], [yModelName
], [xTraceType
], [yTraceType
])where
XYPlot1
- is the name of an XY Plot object or an expression that evaluates to an XY Plot object.xTagName
- is a parameter of String that specifies the x tag of the trace.yTagName
- is a parameter of String that specifies the y tag of the trace.xMinTagName
- is a parameter of String that specifies the tag name for the minimum value of the x-axis.xMaxTagName
- is a parameter of String that specifies the tag name for the maximum value of the x-axis.yMinTagName
- is a parameter of String that specifies the tag name for the minimum value of the y-axis.yMaxTagName
- is a parameter of String that specifies the tag name for the maximum value of the y-axis.xModelName
- is an optional parameter of String that specifies the historical model
name. The parameter is required if the xTraceType
is TraceTypeAF
,
TraceTypeDataLog
, TraceTypeHistorian
, or TraceTypePIServer
.yModelName
- is an optional parameter of String that specifies the historical model
name. The parameter is required if the yTraceType
is TraceTypeAF
,
TraceTypeDataLog
, TraceTypeHistorian
, or TraceTypePIServer
.xTraceType
- is an optional parameter of the XYTraceType
constant. The parameter can be omitted if the trace type is live data or data log.yTraceType
- is an optional parameter of the XYTraceType
constant. The parameter can be omitted if the trace type is live data or data log.Example
Private Sub SetXYPlotMinMaxUseTag() 'Sets the values with tags TagX_Min and TagX_Max for the trace TagX and tags TagY_Min and TagY_Max for the trace TagY of live data. XYPlot1.SetMinMaxUseTag "TagX", "TagY", "{TagX_Min}", "{TagX_Max}", "{TagY_Min}", "{TagY_Max}" 'Sets the values with tags TagX_Min and TagX_Max for the trace Tag1X of PIserver1 and tags TagY_Min and TagY_Max for the trace Tag1Y of PIserver2. XYPlot1.SetMinMaxUseTag "Tag1X", "Tag1Y", "{TagX_Min}", "{TagX_Max}", "{TagY_Min}", "{TagY_Max}", "PIServer1", "PIServer2", TraceTypePIServer, TraceTypePIServer End Sub
Provide Feedback