hic.exe is a command line tool to query sensor data from the GE Proficy Historian.
This folder contains the GE Proficy Historian Client SDK assemblies. The version of the client SDK assembly must match that of the GE Historian server.
This folder contains the C# hic.exe source files.
This folder contains hic executables for different versions of the GE Proficy Historian.
To build the module, open up the solution in Visual Studio and run the build command.
hic <options>
Options:
--server <server dns or environment variable>
--user <user name or environment variable>
--psw <password or environment variable>
--tags <tag names>
--start <start time>
--end <end time>
--samplingMode <CurrentValue | Interpolated | Trend | RawByTime | RawByNumber | Calculated | Lab | InterpolatedToRaw | TrendToRaw | LabToRaw | RawByFilterToggling | Trend2 | TrendToRaw2>
--calculationMode <Average | StandardDeviation | Total | Minimum | Maximum | Count | RawAverage | RawStandardDeviation | RawTotal | MinimumTime | MaximumTime | TimeGood | StateCount | StateTime | OPCAnd | OPCOr | FirstRawValue | FirstRawTime | LastRawValue | LastRawTime | TagStats>
--intervalMicroseconds <sample interval in 1/1000000 seconds>
[--numberOfSamples <number of samples>]
[--out <output csv file>]
Parameters can also be supplied as enviroment variables - just specify the name of the variable as the value of the command line option. This is useful to avoid hardcoded credentials in scripts.
hic --server HOSTNAME --user USERNAME --psw PASSWORD --tags SOME_TAG_001,SOME_TAG_002 --start 2017-05-21T00:00:00Z --end 2017-05-31T00:00:00Z --samplingMode Calculated --calculationMode Average --intervalMicroseconds 60000 --numberOfSamples 14400 --out out.txt --size 2147483647
hic --server HOSTNAME --user USERNAME --psw PASSWORD --tags SOME_TAG_001,SOME_TAG_002 --samplingMode CurrentValue --out out.txt --size 2147483647