CogPrio MethodsCognex VisionPro 9.23

The CogPrio type exposes the following members.

Methods

  NameDescription
Public methodCreateDefaultEvents
Create and return set of default precision i/o events for this hardware.

Adds an "InputChanged_" event for each input line. The event for input line 0 is named "InputChanged_0" and so on... The input events are _CAUSED_ by any signal transition on the dedicated input line. The input events are not configured with a _RESPONSE_.

Adds an "PulseOutput_" event for each output line. The event for output line 0 is named "PulseOutput_0" and so on... The output events _RESPOND_ by pulsing the the dedicated output line high for 10.0ms. The output events are not configured with a _CAUSE_ and only occcur as a result direct user scheduling.

This method creates and returns a collection of events. Note that you need to assign the returned collection of default events to the Comm Card Prio object (i.e. mPrio.Events = mPrio.CreateDefaultEvents()) if you wish to actually configure and use these events on the hardware.

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 methodDisableEvents
Disables all configured events from firing.
Public methodDispose
Public methodEnableEvents
Enables the configured events.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetBanks
Returns an array of the supported I/O banks of the current hardware.
Public methodGetBankType
Returns the type (input, output, etc...) of a given I/O bank
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodGetNumLines
Returns the number of I/O lines the hardware supports in the given bank.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodIsBankSupported
Returns true if the hardware supports the given I/O bank.
Public methodIsInputBank
Returns true if the bank is an input bank.
Public methodIsLineSupported
Returns true if the hardware supports the given I/O bank.
Public methodIsOutputBank
Returns true if the bank is an output bank.
Public methodReadState
Get the current state of the I/O interface.
Public methodResumeAndRaiseChangedEvent
Re-enables raising of the Changed event after SuspendChangedEvent has been called, and 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.
(Inherited from CogSerializableChangedEventBase.)
Public methodSetEncoderCount
Set the encoder count.

Note that current hardware platforms only report 32-bits of encoder data. This means that, depending on the hardware, the encoder may rollover (go back to 0) when the encoder count reaches 4294967295, (0xFFFFFFFF).

On platforms like this only the lower 32 bits of the encoderCount argument are used when calling SetEncoderCount()... So don't try to set the encoder count to a negative number or a number greater than 4294967295.

Public methodSetOutput
Set an output line.
Public methodSetOutputs(CogPrioBankConstants, Int64)
Set multiple output lines at the same time.
Public methodSetOutputs(CogPrioBankConstants, Int64, Int64)
Set multiple output lines at the same time.
Public methodSetValid 
Cognex Internal Use Only
(Inherited from CogPrioEventConfigObjectBase.)
Public methodSetValid(Boolean,  String )
Cognex Internal Use Only
(Inherited from CogPrioEventConfigObjectBase.)
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.
(Inherited from CogSerializableChangedEventBase.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
See Also