0

Ignition Module - Querying string tags

Hi, 

I don't know if the problem lies with Ignition or the Canary Ignition module, but I'm having problems querying tags that are strings from Ignition. Floats and integers are working fine: 

endTime = system.date.now()

startTime = system.date.addDays(endTime, -3)

dataSet = system.tag.queryTagHistory(paths=[pathtostringtag],, startDate=startTime, endDate=endTime, returnSize=-1, returnFormat='Wide')

This returns an array with two columns and zero rows, even if it should return approx 10 rows. 

8 replies

null
    • smason
    • 2 yrs ago
    • Reported - view

    Hi jon. forbord

    Currently, the module does not support the querying of string tags. Are you looking to display the raw string data in a table? Just wondering what your use case is if we want to add support for it.

    • jon_forbord
    • 2 yrs ago
    • Reported - view

    Hi Steve Mason ! I'm looking to use the raw string tag events and timestamps for tables and scripting in Ignition. Comparing process data from similar workorders from different machines at different times, as one example. 

    • srieger
    • 1 yr ago
    • Reported - view

    Hello! Was this feature ever implemented?

    • elvis_phala
    • 3 mths ago
    • Reported - view

    Hi Steve Mason , I have upgraded my canary module to the latest one on my Ignition gateway but I am still unable to query string tags. Can you think of something else that I can look into?

      • smason
      • 3 mths ago
      • Reported - view

      Elvis Here is an example using a data table to display string tags:

      What version of Ignition and the module are you using?

      • elvis_phala
      • 3 mths ago
      • Reported - view

      Steve Mason thanks for the quick response. I am querying the historian from a script so I needed to use the system.tag.queryTagHistory function. What I found was that strings are handled differently and on the "aggregationMode" parameter the "LastValue" option must be used. Hope this will help other users 😁

      • smason
      • 3 mths ago
      • Reported - view

      Thanks Elvis ! That was the aggregate I was using as well.

Content aside

print this pagePrint this page
  • Status Fixed
  • 3 mths agoLast active
  • 8Replies
  • 363Views
  • 4 Following