This project has moved and is read-only. For the latest updates, please go here.

OpenHistorian adapter development

Apr 20, 2015 at 3:18 PM
I have used OpenPDC before, now I am interested in using OpenHistorian in a more generic way, much like you would in a SCADA environment.
But I need to collect data from PLC.
I am a little confused on how to go about this, for example I do not understand the difference between an input and an output adapter.
I am sorry for the trivial question, but could you please give me a quick pointer so that I can start testing the collection of values? Thank you very much.

May 5, 2015 at 9:32 PM
The way would be to write an "Input Adapter" as part of the Time-Series Library - I suggest starting here - the documentation is a little dated, but still relevant:

Also - the most stable version of the code can be downloaded from the Nightly Builds:

You can always just build the code yourself too.

This week we have just added SQL Server support - that is, you can query openHistorian from within SQL Server as if it were a "table" using the GetHistorianData function.

Also, this link provides API help for adapters:
May 6, 2015 at 8:12 AM
Edited May 6, 2015 at 8:12 AM
The first link is missing a closing character, here's the correct one:

Thanks ritchiecarroll
Sep 28, 2015 at 5:10 AM
After much digging, I was able to compile my own small adapter (the one I'm doing now just generates values for testing) following the GSF code.

I deployed the adapter dll in the OpenHistorian (2.0) folder and tried to configure in the OpenHistorian Manager using the "Manage Custom Input Adapter" screen.
Everything seems to work there: it enables it and is seems to successfully send the Initialize.

The question is, shouldn't I be able to see some value in the monitoring section (graph measurements, etc.)? I can only see the TESTDEVICE points...
I searched the docs (the openPDC ones) but did not find anything about configuring and using custom input adapters.

Thanks again for your help