Click or drag to resize
Grid Solutions Framework

PIOutputAdapter Class

Exports measurements to PI if the point tag or alternate tag corresponds to a PI point's tag name.
Inheritance Hierarchy
SystemObject
  GSF.TimeSeries.AdaptersAdapterBase
    GSF.TimeSeries.AdaptersOutputAdapterBase
      PIAdaptersPIOutputAdapter

Namespace: PIAdapters
Assembly: PIAdapters (in PIAdapters.dll) Version: 2.4.218-beta
Syntax
public class PIOutputAdapter : OutputAdapterBase
View Source

The PIOutputAdapter type exposes the following members.

Constructors
 NameDescription
Public methodPIOutputAdapter Creates a new PIOutputAdapter
Top
Properties
 NameDescription
Public propertyAddTagCompressionState Gets or sets the flag that determines if the compression enabled state should be added for new tags.
Public propertyArchiveFilterDataTypes Gets or sets the data types to archive. Value of * (or empty string) means all values archived, DIGI means only archive digital values. Separate multiple values with a comma, for example: DIGI,VPHM,FREQ.
Public propertyArchiveOnChangeDataTypes Gets or sets the data types to only archive on change. Empty string value means all values archived, * means archive all values on change, DIGI means only archive digital values on change. Separate multiple values with a comma, for example: DIGI,VPHM,FREQ.
Public propertyAutoCreateTags Gets or sets whether this adapter should automatically create new tags when managing metadata for PI points.
Public propertyAutoRemoveTags Gets or sets whether this adapter should automatically remove PI tags that no longer exist locally in metadata.
Public propertyAutoStart Gets or sets flag indicating if adapter should automatically start or otherwise connect on demand.
(Inherited from AdapterBase)
Public propertyAutoUpdateTags Gets or sets whether this adapter should automatically update existing tags when managing metadata for PI points.
Public propertyBadDataValueStatus Gets or sets the PI AF value status to use when storing measurements that have been marked as having bad data.
Public propertyBadTimeValueStatus Gets or sets the PI AF value status to use when storing measurements that have been marked as having bad time.
Public propertyCompDevDataTypeMap Gets or sets the defined compression deviations for data types used when AddTagCompressionState or UpdateExistingTagCompressionState is enabled.
Protected propertyConnectionAttemptInterval Gets or sets the connection attempt interval, in milliseconds, for the data output adapter.
(Inherited from OutputAdapterBase)
Public propertyConnectionInfo Gets connection info for adapter, if any.
(Inherited from AdapterBase)
Public propertyConnectionString Gets or sets key/value pair connection information specific to this AdapterBase.
(Inherited from AdapterBase)
Public propertyConnectTimeout Gets or sets the timeout interval (in milliseconds) for the adapter's connection.
Public propertyDataSource Gets or sets DataSet based data source available to this PIOutputAdapter.
(Overrides OutputAdapterBaseDataSource)
Public propertyDigitalBitExcludedExpressions Gets or sets the semicolon separated regular expressions for excluding digital labels from being expanded to tags.
Public propertyDigitalBitStateExpressionMap Gets or sets the semicolon separated pre-existing digital bit state set names mapped to a regular expression for matching digital labels. Use format "DigitalStateName=Expression;DigitalStateName=Expression;...". Use "*" for default expression.
Public propertyDigitalBitTagNameExpressionMap Gets or sets the semicolon separated digital state set name to tag name expression map. One expression should exist for each state defined in DigitalBitStateExpressionMap. Use format "DigitalStateName=Expression;DigitalStateName=Expression;...". Use "*" for default expression.
Public propertyEnabled Gets or sets enabled state of this AdapterBase.
(Inherited from AdapterBase)
Public propertyEnableTimeReasonabilityCheck Gets or sets flag that indicates if incoming timestamps to the historian should be validated for reasonability.
Public propertyExpandDigitalBitsToTags Gets or sets flag that determines if digital bits should be expanded to tags.
Public propertyExpandQualityBitsToTags Gets or sets flag that determines if IEEE C37.118 quality bits should be expanded to tags.
Public propertyExpandStatusBitsToTags Gets or sets flag that determines if IEEE C37.118 status bits should be expanded to tags.
Public propertyFutureTimeReasonabilityLimit Gets or sets the maximum number of seconds that a future timestamp, as compared to local clock, will be considered valid.
Public propertyID Gets or sets numeric ID associated with this AdapterBase.
(Inherited from AdapterBase)
Public propertyIEEEC37118DigitalStates Gets or sets the comma separated digital state set names for IEEE C37.118 status states. Specify digital state set name for each of the following digital states using value of 'X' (without quotes) as the name to indicate state is not mapped: CompositeQual, ConfigChange, ConnectState, DataSorting, DataValid, LeapSecond, NominalFreq, PMUError, SyncError, Timelock, TimeQuality, and Trigger. If digital state sets are predefined, state values are expected to be zero based and incremented by one for each value. If specified digital set name does not exist, it will be created.
Public propertyIEEEC37118TagNameExpressions Gets or sets the semicolon separated tag naming expressions for IEEE C37.118 status states. Specify tag naming expression for each of the following digital states: CompositeQual, ConfigChange, ConnectState, DataSorting, DataValid, LeapSecond, NominalFreq, PMUError, SyncError, Timelock, TimeQuality, and Trigger. Expression can be left blank if no digital state name is mapped for the corresponding state in IEEEC37118DigitalStates.
Public propertyInitializationTimeout Gets or sets maximum time system will wait during Start for initialization.
(Inherited from AdapterBase)
Public propertyInitialized Gets or sets flag indicating if the adapter has been initialized successfully.
(Inherited from AdapterBase)
Public propertyInputMeasurementKeys Gets or sets primary keys of input measurements the PIOutputAdapter expects.
(Overrides AdapterBaseInputMeasurementKeys)
Public propertyInputMeasurementKeyTypes Gets or sets input measurement SignalType's for each of the InputMeasurementKeys, if any.
Public propertyInputSourceIDs Gets or sets Source values used to filter input measurements.
(Inherited from OutputAdapterBase)
Protected propertyInternalProcessQueue Allows derived class access to internal processing queue.
(Inherited from OutputAdapterBase)
Public propertyIsDisposed Gets a flag that indicates whether the object has been disposed.
(Inherited from AdapterBase)
Protected propertyLog Log messages generated by an adapter.
(Inherited from AdapterBase)
Public propertyMaximumPointResolution Gets or sets the maximum time resolution, in seconds, for data points being archived, e.g., a value 1.0 would mean that data would be archived no more than once per second. A zero value indicates that all data should be archived.
Public propertyMeasurementReportingInterval Gets or sets the measurement reporting interval.
(Inherited from AdapterBase)
Protected propertyMetadataRefreshOperation Gets the operation that calls ExecuteMetadataRefresh.
(Inherited from OutputAdapterBase)
Public propertyName Gets or sets the name of this AdapterBase.
(Inherited from AdapterBase)
Public propertyOutputIsForArchive Returns true to indicate that this PIOutputAdapter is sending measurements to a historian, OSIsoft PI.
(Overrides OutputAdapterBaseOutputIsForArchive)
Public propertyOutputMeasurements Gets or sets output measurements that the AdapterBase will produce, if any.
(Inherited from OutputAdapterBase)
Public propertyPassword Gets or sets the password used for the adapter's PI connection.
Public propertyPastTimeReasonabilityLimit Gets or sets the maximum number of seconds that a past timestamp, as compared to local clock, will be considered valid.
Public propertyPIPointClass Gets or sets the point class string used when automatically creating new PI points during the metadata update. On the PI server, this class should inherit from classic.
Public propertyPIPointSource Gets or sets the point source string used when automatically creating new PI points during the metadata update
Public propertyProcessedMeasurements Gets the total number of measurements handled thus far by the AdapterBase.
(Inherited from AdapterBase)
Public propertyProcessingInterval Gets or sets the desired processing interval, in milliseconds, for the output adapter.
(Inherited from OutputAdapterBase)
Public propertyReplaceValues Gets or sets flag that determines if existing PI values should be replaced when UseCompression is enabled.
Public propertyRequestedInputMeasurementKeys Gets or sets input measurement keys that are requested by other adapters based on what adapter says it can provide.
(Inherited from OutputAdapterBase)
Public propertyRequeueOnException Gets or sets whether or not to automatically place measurements back into the processing queue if an exception occurs while processing. Defaults to false.
(Inherited from OutputAdapterBase)
Public propertyRunMetadataSync Gets or sets whether this adapter should automatically manage metadata for PI points.
Public propertyRunTime Gets the total amount of time, in seconds, that the adapter has been active.
(Inherited from AdapterBase)
Public propertyServerName Gets or sets the name of the PI server for the adapter's PI connection.
Public propertySettings Gets settings DictionaryTKey, TValue parsed when ConnectionString was assigned.
(Inherited from AdapterBase)
Public propertySkipAnalogAlternateTagSync Gets or sets flag that determines if tag synchronization should skip analogs when alternate tag field is being used.
Public propertySkipDigitalAlternateTagSync Gets or sets flag that determines if tag synchronization should skip digitals when alternate tag field is being used.
Public propertySpanDataTypeMap Gets or sets the defined value spans for data types used when AddTagCompressionState or UpdateExistingTagCompressionState is enabled.
Public propertyStartTime Gets the UTC time this AdapterBase was started.
(Inherited from AdapterBase)
Public propertyStartTimeConstraint Gets the start time temporal processing constraint defined by call to SetTemporalConstraint(String, String, String).
(Inherited from AdapterBase)
Public propertyStatus Returns the detailed status of the data output source.
(Overrides OutputAdapterBaseStatus)
Public propertyStepEnabledDataTypeMap Gets or sets the defined step enabled for values for data types used when AddTagCompressionState or UpdateExistingTagCompressionState is enabled.
Public propertyStopTime Gets the UTC time this AdapterBase was stopped.
(Inherited from AdapterBase)
Public propertyStopTimeConstraint Gets the stop time temporal processing constraint defined by call to SetTemporalConstraint(String, String, String).
(Inherited from AdapterBase)
Public propertySupportsTemporalProcessing Gets the flag indicating if this OutputAdapterBase implementation supports temporal processing.
(Inherited from OutputAdapterBase)
Public propertySyncAlternateTagOnly Gets or sets flag that determines if tag synchronization should only use alternate tag fields.
Public propertyTagMapCacheFileName Gets or sets the filename to be used for tag map cache.
Public propertyTagNamePrefixRemoveCount Gets or sets the number of tag name prefixes, e.g., "SOURCE!", applied by subscriptions to remove from PI tag names.
Public propertyUpdateExistingDescriptorState Gets or sets the flag that determines if the descriptor state should be updated for existing tags.
Public propertyUpdateExistingTagCompressionState Gets or sets the flag that determines if the compression enabled state, per UseCompression flag, should be adjusted for existing tags, overriding existing configuration.
Protected propertyUseAsyncConnect Returns false to indicate that this PIOutputAdapter will connect synchronously.
(Overrides OutputAdapterBaseUseAsyncConnect)
Public propertyUseCompression Gets or sets the flag that determines if compression will be used during archiving when compression is configured for tag. If disabled, configured tag compression and ReplaceValues setting are ignored.
Public propertyUserName Gets or sets the name of the PI user ID for the adapter's PI connection.
Public propertyWriteDigitalWord Gets or sets flag that determines if digital word should be written to PI as a separate tag. Commonly disabled if digital bits are expanded to tags, see ExpandDigitalBitsToTags.
Public propertyWriteQualityWord Gets or sets flag that determines if quality word should be written to PI as a separate tag. Commonly disabled if IEEE C37.118 quality bits are expanded to tags, see ExpandQualityBitsToTags.
Public propertyWriteStatusWord Gets or sets flag that determines if status word should be written to PI as a separate tag. Commonly disabled if IEEE C37.118 status bits are expanded to tags, see ExpandStatusBitsToTags.
Public propertyZeroValueDataTypeMap Gets or sets the defined zero values for data types used when AddTagCompressionState or UpdateExistingTagCompressionState is enabled.
Top
Methods
 NameDescription
Protected methodAttemptConnection Connects to the configured PI server.
(Overrides OutputAdapterBaseAttemptConnection)
Protected methodAttemptDisconnection Closes this PIOutputAdapter connections to the PI server.
(Overrides OutputAdapterBaseAttemptDisconnection)
Public methodClearTracedMeasurements Clears any point tags queued for value tracing.
Public methodDispose Releases all the resources used by the AdapterBase object.
(Inherited from AdapterBase)
Protected methodDispose(Boolean) Releases the unmanaged resources used by the PIOutputAdapter object and optionally releases the managed resources.
(Overrides OutputAdapterBaseDispose(Boolean))
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodExecuteMetadataRefresh Sends updated metadata to PI.
(Overrides OutputAdapterBaseExecuteMetadataRefresh)
Protected methodFinalize Releases the unmanaged resources before the AdapterBase object is reclaimed by GC.
(Inherited from AdapterBase)
Public methodFlush Blocks the current thread, if the OutputAdapterBase is connected, until all items in OutputAdapterBase queue are processed, and then stops processing.
(Inherited from OutputAdapterBase)
Public methodGetArchiveQueueStatus Gets full archive queue status.
Public methodGetHashCode Serves as a hash function for the current AdapterBase.
(Inherited from AdapterBase)
Public methodGetShortStatus Returns a brief status of this PIOutputAdapter
(Overrides AdapterBaseGetShortStatus(Int32))
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodIncrementProcessedMeasurements Safely increments the total processed measurements.
(Inherited from AdapterBase)
Public methodInitialize Initializes this PIOutputAdapter.
(Overrides OutputAdapterBaseInitialize)
Public methodLookupPITag Attempts to lookup PI tag in PI server metadata.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodOnConfigurationChanged Raises ConfigurationChanged event.
(Inherited from AdapterBase)
Protected methodOnConnected Called when data output source connection is established.
(Inherited from OutputAdapterBase)
Protected methodOnDisconnected Called when data input source is disconnected.
(Inherited from OutputAdapterBase)
Protected methodOnInputMeasurementKeysUpdated Raises InputMeasurementKeysUpdated event.
(Inherited from AdapterBase)
Protected methodOnOutputMeasurementsUpdated Raises OutputMeasurementsUpdated event.
(Inherited from AdapterBase)
Protected methodOnProcessException(Exception)Obsolete.
Raises the ProcessException event.
(Inherited from AdapterBase)
Protected methodOnProcessException(MessageLevel, Exception, String, MessageFlags) Raises the ProcessException event.
(Inherited from AdapterBase)
Protected methodOnStatusMessage(String)Obsolete.
Raises the StatusMessage event.
(Inherited from AdapterBase)
Protected methodOnStatusMessage(String, Object)Obsolete.
Raises the StatusMessage event with a formatted status message.
(Inherited from AdapterBase)
Protected methodOnStatusMessage(MessageLevel, String, String, MessageFlags) Raises the StatusMessage event and sends this data to the Logger.
(Inherited from AdapterBase)
Protected methodOnUnprocessedMeasurements Raises the UnprocessedMeasurements event.
(Inherited from OutputAdapterBase)
Protected methodProcessMeasurements Sorts measurements and sends them to the configured PI server in batches
(Overrides OutputAdapterBaseProcessMeasurements(IMeasurement))
Public methodQueueMeasurementForProcessing Queues a single measurement for processing. Measurement is automatically filtered to the defined InputMeasurementKeys.
(Inherited from OutputAdapterBase)
Public methodQueueMeasurementsForProcessing Queues a collection of measurements for processing. Measurements are automatically filtered to the defined InputMeasurementKeys.
(Overrides OutputAdapterBaseQueueMeasurementsForProcessing(IEnumerableIMeasurement))
Public methodRefreshMetadata Initiates request for metadata refresh for OutputAdapterBase, if implemented.
(Inherited from OutputAdapterBase)
Public methodRemoveMeasurements This removes a range of measurements from the internal measurement queue.
(Inherited from OutputAdapterBase)
Public methodSetInitializedState Manually sets the initialized state of the AdapterBase.
(Inherited from AdapterBase)
Public methodSetTemporalConstraint Defines a temporal processing constraint for the adapter.
(Inherited from AdapterBase)
Public methodShowQualityWordMeasurements Show configured quality word measurements and related bit measurements.
Public methodShowStatusWordMeasurements Show configured status word measurements and related bit measurements.
Public methodStart Starts this OutputAdapterBase and initiates connection cycle to data output stream.
(Inherited from OutputAdapterBase)
Public methodStop Stops this OutputAdapterBase and disconnects from data output stream.
(Inherited from OutputAdapterBase)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTraceMeasurement Queues a point tag for value tracing.
Top
Events
 NameDescription
Public eventConfigurationChanged Event is raised when adapter is aware of a configuration change.
(Inherited from AdapterBase)
Public eventDisposed Event is raised when AdapterBase is disposed.
(Inherited from AdapterBase)
Public eventInputMeasurementKeysUpdated Event is raised when InputMeasurementKeys are updated.
(Inherited from AdapterBase)
Public eventOutputMeasurementsUpdated Event is raised when OutputMeasurements are updated.
(Inherited from AdapterBase)
Public eventProcessException Event is raised when there is an exception encountered while processing.
(Inherited from AdapterBase)
Public eventStatusMessage Provides status messages to consumer.
(Inherited from AdapterBase)
Public eventUnprocessedMeasurements Event is raised every five seconds allowing host to track total number of unprocessed measurements.
(Inherited from OutputAdapterBase)
Top
Fields
 NameDescription
Public fieldStatic memberC37118DigitalStateSetValues Predefined digital state set AF enumeration values for IEEE C37.118 connection states, quality and status word bits, see C37118DigitalStateSets.
Public fieldStatic memberInstances Accesses local output adapter instances (normally only one).
Top
See Also