This class controls the digital camera trigger output.
See class VIB::CameraTrigger in the VisionBox Interface Library for a detailed description.
- Examples
-
|
| CameraTrigger () |
| Default constructor for the device object More...
|
|
void | Reset () |
| Resets the device to default settings. More...
|
|
void | Set (UInt32 Channel, eTRG_SOURCE Source, Boolean TrgPOff, Boolean TrgPOn, Boolean TrgNOff, Boolean TrgNOn) |
| Sets trigger output for the specified channel More...
|
|
void | Set (UInt32 Channel, eTRG_SOURCE Source, eDRIVER_MODE DriverMode, Boolean Invert) |
| Sets trigger output for the specified channel More...
|
|
void | SetAll (eTRG_SOURCE Source, Boolean TrgPOff, Boolean TrgPOn, Boolean TrgNOff, Boolean TrgNOn) |
| Sets the trigger output of all lines More...
|
|
void | Close () |
| Closes a device More...
|
|
bool | isOpen () |
| Returns the open state of a device object More...
|
|
void | Open () |
| Opens a device More...
|
|
void | Open (unsigned int Index) |
| Opens a device More...
|
|
◆ eDRIVER_MODE
Output driver mode
Enumerator |
---|
PUSH_PULL | Push-Pull mode, both transistors are used.
|
EMITTER_FOLLOWER | Emitter-follower mode, only the upper transistor is used.
|
OPEN_COLLECTOR | Open-collector mode, only the lower transistor is used (the output signal is low-active)
|
◆ eTRG_SOURCE
Camera trigger source, used by Set() and SetAll()
- Note
- The VisionBox AGE-X1 doesn't have a Multiplexer and therefore uses different source signals than new hardware generations.
Enumerator |
---|
OFF | Trigger off.
|
ON | Trigger on
|
MUX_OUT0 | Multiplexer Output 0.
|
MUX_OUT1 | Multiplexer Output 1.
|
MUX_OUT2 | Multiplexer Output 2.
|
MUX_OUT3 | Multiplexer Output 3.
|
MUX_OUT4 | Multiplexer Output 4.
|
MUX_OUT5 | Multiplexer Output 5.
|
MUX_OUT6 | Multiplexer Output 6.
|
MUX_OUT7 | Multiplexer Output 7
|
MUX_OUT8 | Multiplexer Output 8.
|
MUX_OUT9 | Multiplexer Output 9.
|
MUX_OUT10 | Multiplexer Output 10.
|
MUX_OUT11 | Multiplexer Output 11.
|
MUX_OUT12 | Multiplexer Output 12.
|
MUX_OUT13 | Multiplexer Output 13.
|
MUX_OUT14 | Multiplexer Output 14.
|
MUX_OUT15 | Multiplexer Output 15.
|
MUX_OUT16 | Multiplexer Output 16.
|
MUX_OUT17 | Multiplexer Output 17.
|
MUX_OUT18 | Multiplexer Output 18.
|
MUX_OUT19 | Multiplexer Output 19.
|
MUX_OUT20 | Multiplexer Output 20.
|
MUX_OUT21 | Multiplexer Output 21.
|
MUX_OUT22 | Multiplexer Output 22.
|
MUX_OUT23 | Multiplexer Output 23.
|
DIG_IN0 | DigitalInput 0 (VisionBox AGE-X1 only)
|
DIG_IN1 | DigitalInput 1 (VisionBox AGE-X1 only)
|
DIG_IN2 | DigitalInput 2 (VisionBox AGE-X1 only)
|
DIG_IN3 | DigitalInput 3 (VisionBox AGE-X1 only)
|
DIG_IN4 | DigitalInput 4 (VisionBox AGE-X1 only)
|
DIG_IN5 | DigitalInput 5 (VisionBox AGE-X1 only)
|
DIG_IN6 | DigitalInput 6 (VisionBox AGE-X1 only)
|
DIG_IN7 | DigitalInput 7 (VisionBox AGE-X1 only)
|
RS422_IN0 | RS422 input 0 (VisionBox AGE-X1 only)
|
RS422_IN1 | RS422 input 1 (VisionBox AGE-X1 only)
|
RS422_IN2 | RS422 input 2 (VisionBox AGE-X1 only)
|
TRIGGEN_OUT0 | TriggerGenerator Output 0 (VisionBox AGE-X1 only)
|
TRIGGEN_OUT1 | TriggerGenerator Output 1 (VisionBox AGE-X1 only)
|
TRIGGEN_OUT2 | TriggerGenerator Output 2 (VisionBox AGE-X1 only)
|
◆ CameraTrigger()
VIB_NET::CameraTrigger::CameraTrigger |
( |
| ) |
|
Default constructor for the device object
The device must be opened with Open() before it can be used.
◆ Reset()
void VIB_NET::CameraTrigger::Reset |
( |
| ) |
|
◆ Set() [1/2]
void VIB_NET::CameraTrigger::Set |
( |
UInt32 |
Channel, |
|
|
eTRG_SOURCE |
Source, |
|
|
Boolean |
TrgPOff, |
|
|
Boolean |
TrgPOn, |
|
|
Boolean |
TrgNOff, |
|
|
Boolean |
TrgNOn |
|
) |
| |
Sets trigger output for the specified channel
See also VIB::CameraTrigger::Set() for a description of the parameters.
- Parameters
-
Channel | Channel number, 0 ... (NumberOfOutputs - 1) |
Source | Trigger source signal |
TrgPOff | High side switch activity for low input signal |
TrgPOn | High side switch activity for high input signal |
TrgNOff | Low side switch activity for low input signal |
TrgNOn | Low side switch activity for high input signal |
- Example:
- C#:
◆ Set() [2/2]
Sets trigger output for the specified channel
- Parameters
-
Channel | Channel number, 0 ... (NumberOfOutputs - 1) |
Source | Trigger source signal |
DriverMode | Driver mode |
Invert | Polarity |
- Example:
- C#:
◆ SetAll()
void VIB_NET::CameraTrigger::SetAll |
( |
eTRG_SOURCE |
Source, |
|
|
Boolean |
TrgPOff, |
|
|
Boolean |
TrgPOn, |
|
|
Boolean |
TrgNOff, |
|
|
Boolean |
TrgNOn |
|
) |
| |
Sets the trigger output of all lines
The function has the same behaviour as Set() excepting that all changes are done simultaneous.
- Parameters
-
Source | Trigger source (eTRG_SOURCE) |
TrgPOff | true and source = 0, high side switch -> on, else switch is off |
TrgPOn | true and source = 1, high side switch -> on, else switch is off |
TrgNOff | true and source = 0, low side switch -> on, else switch is off |
TrgNOn | true and source = 1, low side switch -> on, else switch is off |
- Example:
- C#:
◆ Type
VIB_NET::CameraTrigger::Type |
|
get |
Returns the device type for the current instance, see eDEVICE_TYPE