TK.GetTagHistorian (String, DateTimeOffset, Object, String, Boolean, Boolean, Boolean, Boolean, String) Method
Public Shared Function GetTagHistorian( _
ByVal tagName 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 DataTable
This language is not supported or no code example is available.
public static DataTable GetTagHistorian(
string tagName,
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
- tagName
- string
Tag name
- 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
DataTableReference to table containg historical data. Column "Timestamp" is in UTC time when running on script class/task server or in Local time when running on clients