CogDataAnalysis ClassCognex VisionPro 9.22 SR1
The object that performs tolerancing, statistical analysis, and buffering of data values over a set of data analysis channels.
Inheritance Hierarchy

System Object
  System MarshalByRefObject
    Cognex.VisionPro.Implementation CogObjectBase
      Cognex.VisionPro CogDataAnalysis

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 87.1.0.0
Syntax

[SerializableAttribute]
public class CogDataAnalysis : CogObjectBase, 
	ICogNetInternal, IDisposable, ICloneable, ISerializable, ICogHasChanged, 
	ICogChangedEvent, ICollection, IDictionary, ICogKeyedCollectionEvents

The CogDataAnalysis type exposes the following members.

Constructors

  NameDescription
Public methodCogDataAnalysis 
Constructs a new instance of this class.
Public methodCogDataAnalysis(IntPtr)
Constructs a new instance of this class using com pointer.
Public methodCogDataAnalysis(CogDataAnalysis)
Constructs a new instance of this class as a deep copy of the given instance.
Top
Methods

  NameDescription
Public methodAddNew
Creates a new channel that may be used to set tolerance limits, compute statistics, and buffer data values. If NumBufferedValues is greater than zero, the channel will be initialized with that number of invalid values.
Protected methodattachCom
Public methodClear
Removes all items from this collection.
Protected methodClone
Returns a deep copy of this class instance. Derived classes that implement Clone should override this method; other clients who wish to clone this instance should call ICloneable.Clone. See also CogSerializer.DeepCopyObject
Public methodCopyTo
Copies the contents of this collection to an array.
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodDispose 
Protected methodDispose(Boolean)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExecute
Generate data analysis results by taking each CurrentValue, buffering it, and comparing it to the specified limits.
Protected methodFinalize (Overrides Object Finalize .)
Public methodGetAggregateToleranceStatuses
Gets the history of aggregate tolerance statuses produced. Each status reflects the results of the corresponding historical call to execute. Index 0 represents the oldest status. Index NumBufferedValues-1 represents the most recent status.
Protected methodGetAttributes
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetClassName
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetComponentName
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetConverter
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetDefaultEvent
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetDefaultProperty
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetEditor
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetEvents 
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetEvents( Attribute )
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetKey
Gets the key of the item at the specified index.
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodGetObjectData
Protected methodGetProperties 
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetProperties( Attribute )
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetPropertyOwner
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf
Gets the index of the given item. If the item cannot be found -1 is returned.
Public methodIndexOfKey
Gets the index of the item with the specified key. If the key cannot be found -1 is returned.
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodMemberwiseClone 
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodMemberwiseClone(Boolean)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
Public methodMove
Moves the selected item to a new index in this collection.
Public methodRemove
Removes the item with the specified key.
Public methodRemoveAt
Removes the item at the specified index.
Public methodResetBufferedValues
Clears the buffered values for all of the associated channel items. Each channel will have no buffered values after invoking this method.
Public methodResetRunningStatistics
Resets the running statistics for all of the associated channel items. Each channel's RunningNumSamples will be zero after invoking this method.
Public methodResumeAndRaiseChangedEvent
Re-enables raising of the Changed event after SuspendChangedEvent has been called. Also raises the Changed event if the ChangedEventSuspended count is reduced to zero and any changes were made while events were suspended. Must be called once for each call to SuspendChangedEvent.
Public methodSetKey
Sets the key of the item at the specified index.
Public methodSuspendChangedEvent
Temporarily suspends the raising of the Changed event. May be called more than once, and a corresponding call to ResumeAndRaiseChangedEvent must be made for each call to SuspendChangedEvent.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Fields

  NameDescription
Protected field__com
Protected field__disposed
Protected fieldStatic member__factory
Protected fieldStatic memberCreator
Public fieldStatic memberSfChannelBufferLength
This bit will be set in the EventArgs of a Changed event every time the value returned by ChannelBufferLength may have changed.
Public fieldStatic memberSfIndividualResultsEnabled
This bit will be set in the EventArgs of a Changed event every time the value returned by IndividualResultsEnabled may have changed.
Public fieldStatic memberSfNumBufferedValues
This bit will be set in the EventArgs of a Changed event every time the value returned by NumBufferedValues may have changed.
Public fieldStatic memberSfRejectOnInvalidData
This bit will be set in the EventArgs of a Changed event every time the value returned by RejectOnInvalidData may have changed.
Top
Properties

  NameDescription
Public propertyChangedEventSuspended
If nonzero, indicates that the raising of the Changed event has been suspended. This value is incremented when SuspendChangedEvent is called and decremented when ResumeAndRaiseChangedEvent is called.
Public propertyChannelBufferLength
Returns/sets the number of values to buffer for each ICogDataAnalysisChannel item. The CurrentValue of each object will be buffered for each call to Run or Execute.
Public propertyCount
Gets the number of items contained in this collection.
Public propertyHasChanged
If true, the serializable state of this object has changed since the last time it was serialized.
Public propertyIndividualResultsEnabled
Returns/sets the flag that controls whether individual result objects are added to the Results collection by Execute. If set to false, the Results collection will only hold the aggregate results.
Public propertyIsSynchronized
Gets a value indicating whether access to this collection is synchronized (thread-safe).
Public propertyItem Int32 
Gets or sets the item with the specified index or key. In C#, this property is the indexer for the collection.
Public propertyItem String 
Gets or sets the item with the specified index or key. In C#, this property is the indexer for the collection.
Public propertyNumBufferedValues
Returns the number of values stored in the buffer for each ICogDataAnalysisChannel item. This includes any invalid values that may have been buffered. NumBufferedValues will always be less than or equal to the ChannelBufferLength.
Public propertyRejectOnInvalidData
Returns/sets a flag that causes any invalid data values to produce a reject AggregateToleranceStatus if set to true. If set to false, this designates that those channels will not be used to compute the aggregate tolerance status.
Public propertySyncRoot
Gets an object that can be used to synchronize access to this collection.
Top
Events

  NameDescription
Public eventChanged
Public eventCleared
Occurs after this collection is cleared.
Public eventClearing
Occurs before this collection is cleared.
Public eventInsertedItem
Occurs after an item is inserted into this collection.
Public eventInsertingItem
Occurs before an item is inserted into this collection.
Public eventKeyChanged
Occurs after an item's key is changed.
Public eventKeyChanging
Occurs before an item's key is changed.
Public eventMovedItem
Occurs after an item is moved to a new index.
Public eventMovingItem
Occurs before an item is moved to a new index.
Public eventRemovedItem
Occurs after an item is removed from this collection.
Public eventRemovingItem
Occurs before an item is removed from this collection.
Public eventReplacedItem
Occurs after an item is replaced in this collection.
Public eventReplacingItem
Occurs before an item is replaced in this collection.
Top
Remarks

Primary interface for CogDataAnalysis objects. Each CogDataAnalysis object holds a collection of CogStatisticss. Tolerance results are generated across the set of channels via the Execute  method.

See Also