SetMinMaxUseTag method (TrendPro object)
Uses tags to set the minimum and maximum values of a trace.
Syntax
TrendPro1
.SetMinMaxUseTag
(minTagName
, maxTagName
, tagName
, [modelName
], [traceType
])where
TrendPro1
- is the name of a TrendPro object or an expression that evaluates to a TrendPro object.minTagName
- is a parameter of String that specifies the tag name for the minimum value.maxTagName
- is a parameter of String that specifies the tag name for the maximum value.tagName
- is a parameter of String that specifies the trace name.modelName
- is an optional parameter of String that specifies the historical model
name. The parameter is required if the traceType
is TraceTypeAF
,
TraceTypeDataLog
, TraceTypeHistorian
or TraceTypePIServer
. traceType
- is an optional parameter of the TrendTraceType
constant. The parameter can be omitted if the trace type is live data or data log.Example
Private Sub SetTrendProMinMaxUseTag() 'Sets the values with tags Tag_Min and TagMax for the trace Tag1 of live data. TrendPro1.SetMinMaxUseTag "{Tag_Min}", "{Tag_Max}", "Tag1" 'Sets the values with tags Tag_Min and Tag_Max for the trace CDT_158 of PI server data. TrendPro1.SetMinMaxUseTag "{Tag_Min}", "{Tag_Max}", "CDT_158", "PIServer", TraceTypePIServer End Sub
Provide Feedback