Originally published on Digital E-books by mroche1 | May 13, 2022 09:46 PM
In the Niagara BQL Query Examples document, get examples of how to use BQL query to extract data from a G3 station. Learn about how to display data from the BMS system on a custom / third-party application. An example of using Excel web query is included.
TAC IA Series
Niagara BQL Query Examples – 1
Using Where Statements – 1
Like Operators – 2
Period Modifiers – 2
Delta Values – 2
Rollup Values – 2
Space Character Handling in Web (Excel) Queries – 3
Sample Excel Web Query – 3
“This query returns data from the OaTemp history in two columns. The first column contains the timestamp and the second column contains the value. The syntax "as 'time stamp'" and "as 'temperature'" configures the text to be displayed at the top of each column. This is useful when the name of the property is not intuitive, such as 'toString'.” – Page 1
“At times it is necessary to evaluate the collected values to determine minimum, maximum, average, and the sum of values. This can be accomplished through program objects by performing bql queries and then cursor through the BI Table results to perform the math functions. Alternatively, there is a special function of the bql query which does this; it is the same functionality that is provided in the history chart interface for data rollups.” – Page 2
“The return could be limited by using 'select timestamp,value' if the trend flags and status are not required. Because the refresh options were selected, this data table will refresh automatically every 15 minutes while the spreadsheet is open.” – Page 6
All registered members have full access to the Exchange Community and can post comments and start topics.
Create your free account or log in to subscribe to the forum - and gain access to more than 10,000+ support articles along with insights from experts and peers.