Get Current Point
Returns the current/latest value for one or more tags.
Signature
Section titled “Signature”EIGEN.GETCURRENT(datasource, tags, headers = false, showTag = true, tabular = false, valueOnly = false)
Parameters
Section titled “Parameters”datasource(string): Historian name. If omitted, reads default from settings.tags(string[][]): One or more tag names (can be single string or array).headers(boolean): Show header row. Default:false.showTag(boolean): Include tag name in the output columns. Default:true.tabular(boolean): Render in tabular layout (vs. vertical). Default:false.valueOnly(boolean): Return only the numeric/value cell (no timestamp or tag). Default:false.
Returns
Section titled “Returns”string[][]— Array of rows representing the latest value(s) and timestamp(s).- With defaults (
headers=false,showTag=true,tabular=false): Each row is[Tag, Timestamp, Value] - With
headers=true: Header row["Tag", "Timestamp", "Value"]precedes data rows. - With
showTag=false: Columns are[Timestamp, Value]. - With
valueOnly=true: Only[Value].
- With defaults (
- If multiple tags are requested the function returns one row per tag (unless
tabularchanges layout). - On partial errors the function appends error rows to the result (strings prefixed with
ERROR:). - See Advanced Options for details on
headers,showTag,tabular, andvalueOnly.
Example
Section titled “Example”=EIGEN.GETCURRENT("Demo-influxdb", "DEMO_02TI301.PV")— returns latest value and timestamp forDEMO_02TI301.PV.
Sample output (with headers and showTag):
| Tag | Timestamp | Value |
|---|---|---|
| DEMO_02TI301.PV | 2024-01-01 10:30:45 | 75.3 |
Support
Section titled “Support”For more help, open a ticket: https://eigen.freshdesk.com