0

Data not being returned when system.historian.queryRawPoints

Hi all,

When I query for raw data points nothing is being returned?

Im using Canary Module version 26.0.0 (b260821045) on Ignition 8.3.8

end = system.date.now()
start = system.date.addMinutes(end, -60)

print system.historian.queryRawPoints(
paths=["[canary-historian]280QWP7SVR3/strandfontein-mar/site/mar-54_sim/flow/pulse_count"],
startTime=start,
endTime=end
)

 Using the powerchart I can see the data is there.

No error is being thrown in the logs or console just getting a empty dataset

4 replies

null
    • liam
    • 20 hrs ago
    • Reported - view

    Is there something obvious that I am doing wrong?

      • smason
      • 14 hrs ago
      • Reported - view

      Hi  ,

      It looks like the syntax has been updated since we've last looked at this. I got this to work following Code Snippet 2 seen here.

      My example is below:

       I think this will work for you based on your screenshot:
       

      end = system.date.now()
      start = system.date.addMinutes(end, -60)
      
      print system.historian.queryRawPoints(
      paths=["histprov:canary-historian:/sys:ignition-280qwp7svr1:/prov:default:/tag:strandfontein-mar/site/mar-54_sim/flow/pulse_count"],
      startTime=start,
      endTime=end
      )

      I updated the documentation for the module to include the new syntax: Module Installation & Configuration (Canary v24+ and Ignition v8.3) - Ignition Module Release Notes - Canary Community.

      • liam
      • 2 hrs ago
      • Reported - view

       Unfortunately doesn't work, here is the powerchart path:
       

      histprov:canary-historian:/drv:ignition-280qwp7svr1:default:/tag:280QWP7SVR3/strandfontein-mar/site/mar-54_sim/flow/pulse_count
      
      • liam
      • 29 min ago
      • Reported - view

       Okay Claude figured it out:
       

      end = system.date.now()
      start = system.date.addMinutes(end, -60)
      
      result = system.historian.queryRawPoints(
          paths=["histprov:canary-historian:/drv:ignition-280qwp7svr1:default:/tag:280QWP7SVR3/strandfontein-mar/site/mar-54_sim/flow/pulse_count"],
          startTime=start,
          endTime=end
      )
      print(result)
      

Content aside

print this pagePrint this page
  • 29 min agoLast active
  • 4Replies
  • 7Views
  • 3 Following