TK.GetTagsHistorian Method
Public Shared Function GetTagsHistorian( _
ByVal tagNames As String(), _
ByVal start As DateTimeOffset, _
ByVal duration As Object, _
Optional ByVal getSamplesMode As String = null, _
Optional ByVal getRawData As Boolean = true, _
Optional ByVal isDrillingChart As Boolean = false, _
Optional ByVal isDepthChart As Boolean = false, _
Optional ByVal boundaryOutside As Boolean = true, _
Optional ByVal filterExpression As String = null _
) As DataSet
This language is not supported or no code example is available.
public static DataSet GetTagsHistorian(
string[] tagNames,
DateTimeOffset start,
object duration,
string getSamplesMode = null,
bool getRawData = true,
bool isDrillingChart = false,
bool isDepthChart = false,
bool boundaryOutside = true,
string filterExpression = null
)
This language is not supported or no code example is available.
Parameters
- tagNames
- string[]
Array containg tag names
- start
- DateTimeOffset
Start in local time
- duration
- object
Duration
- getSamplesMode
- string
Optional string mode used to get samples. Default is null (Normal mode). Each provider has your format. To CanaryHistorian: "Aggregate;Interval"
- getRawData
- bool
>Optional flag indicating whether should getting raw data. Default is true
- isDrillingChart
- bool
Optional flag indicating whether should get samples for Drilling chart. Default is false
- isDepthChart
- bool
>Optional flag indicating whether should get samples by depth for Drilling chart. Default is false
- boundaryOutside
- bool
>Optional flag indicating whether should get samples on the outside (true) or inside(false) of the requested start time and duration. Default is true
- filterExpression
- string
>Optional SQL filter expression. Default is null
Return Value
DataSetReference to dataset containg historical data. Column "Timestamp" is in UTC time when running on script class/task server or in Local time when running on client