Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 938109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:35:18+00:00 2026-05-15T21:35:18+00:00

How can I retrieve raw time-series data from a Proficy Historian/iHistorian? Ideally, I would

  • 0

How can I retrieve raw time-series data from a Proficy Historian/iHistorian?

Ideally, I would ask for data for a particular tag between two dates.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T21:35:18+00:00Added an answer on May 15, 2026 at 9:35 pm

    There are several different sampling modes you can experiment with.

    • Raw
    • Interpolated
    • Lab
    • Trend
    • Calculated

    These modes are available using all of the following APIs.

    • User API (ihuapi.dll)
    • SDK (ihsdk.dll)
    • OLEDB (iholedb.dll)
    • Client Acess API (Proficy.Historian.ClientAccess.API)

    Of these the trend sampling mode is probably what you want since it is specifically designed for charting/trending. Though, lab and interpolated may be useful as well.

    Read the electronic book for more information on each sampling mode. On my machine it is stored as C:\Program Files\GE Fanuc\Proficy Historian\Docs\iHistorian.chm and I have version 3.5 installed. Pay particular attention to the following sections.

    • Using the Historian OLE DB Provider
    • Advanced Topics | Retrieval

    Here is how you can construct an OLEDB to do trend sampling.

    set 
        SamplingMode = 'Trend',
        StartTime = '2010-07-01 00:00:00',
        EndTime = '2010-07-02 00:00:00',
        IntervalMilliseconds = 1h
    select 
        timestamp, 
        value, 
        quality 
    from 
        ihRawData 
    where 
        tagname = 'YOUR_TAG'
    

    Showing the equivalent methods using the User API and the SDK are complex (more so with the User API) since they require a lot of plumbing in the code to get setup. The Client Access API is newer and uses WCF behind the scenes.

    By the way, there are a few limitations with the OLEDB method though.

    • Despite what the documentation says I have never been able to get native query parameters to work. That is a showstopper if you want to use it with SQL Server Reporting Services for example.
    • You cannot write samples into the archive or in any way make changes to the Historian configuration including adding/changing tags, writing messages, etc.
    • It can be a little slow in some cases.
    • It has no provision for crosstabbing multiple tagnames into the columns and then carrying forward samples so that a value exists for each timestamp and tag combination. The trend sampling mode gets you halfway there, but still does not crosstab and does not actually load raw samples. Then again the User API and SDK cannot do this either.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to retrieve data from http://api.freebase.com/api/trans/raw/m/0h47 As you can see in text there
I have a situation whereby a thread can retrieve an object from the db,
I developp a Java application using Windows Desktop Search from which I can retrieve
While parsing an XML, given a Node object, can I retrieve the raw XML
I would like to retrieve multiple log files from an Ubuntu server (using Python
I would like to understand how to retrieve the quotation from a top level
We can retrieve configuration sections from web.config in the following two ways: Configuration config
I am trying opening a audio file (.wav) and retrieve the raw data. I
I'm using Hibernate to retrieve some data from a database. The result set returned
I can retrieve a Cookie value by: <?php $cookie=$_COOKIE[cookieName]; ?> Now i want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.