VisionBox .NET Library  1.7.10.0 (2024-04-16)
VIB_NET::CameraTrigger Class Reference
+ Inheritance diagram for VIB_NET::CameraTrigger:

Detailed Description

This class controls the digital camera trigger output.


See class VIB::CameraTrigger in the VisionBox Interface Library for a detailed description.

Examples

Public Types

enum  eDRIVER_MODE
 Output driver mode More...
 
enum  eTRG_SOURCE
 Camera trigger source, used by Set() and SetAll() More...
 

Public Member Functions

 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...
 
- Public Member Functions inherited from VIB_NET::iDevice
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...
 

Properties

UInt32 NumberOfOutputs [get]
 Returns the number of output channels.
 
virtual VIB_NET::eDEVICE_TYPE Type [get]
 Returns the device type for the current instance, see eDEVICE_TYPE More...
 
- Properties inherited from VIB_NET::iDevice
virtual VIB_NET::eDEVICE_TYPE Type [get]
 Returns the device type for the current instance, see eDEVICE_TYPE More...
 

Member Enumeration Documentation

◆ 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)

Constructor & Destructor Documentation

◆ CameraTrigger()

VIB_NET::CameraTrigger::CameraTrigger ( )

Default constructor for the device object

The device must be opened with Open() before it can be used.

Member Function Documentation

◆ Reset()

void VIB_NET::CameraTrigger::Reset ( )

Resets the device to default settings.

See also VIB::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
ChannelChannel number, 0 ... (NumberOfOutputs - 1)
SourceTrigger source signal
TrgPOffHigh side switch activity for low input signal
TrgPOnHigh side switch activity for high input signal
TrgNOffLow side switch activity for low input signal
TrgNOnLow side switch activity for high input signal
Example:
C#:
// turn Channel 0 on as push/pull
pCamTrig.Set(0, VIB_NET.CameraTrigger.eTRG_SOURCE.ON, false, true, true, false);

◆ Set() [2/2]

void VIB_NET::CameraTrigger::Set ( UInt32  Channel,
eTRG_SOURCE  Source,
eDRIVER_MODE  DriverMode,
Boolean  Invert 
)

Sets trigger output for the specified channel

Parameters
ChannelChannel number, 0 ... (NumberOfOutputs - 1)
SourceTrigger source signal
DriverModeDriver mode
InvertPolarity
Example:
C#:
// turn Channel 0 on as push/pull
pCamTrig.Set(0, VIB_NET.CameraTrigger.eTRG_SOURCE.ON, VIB_NET.CameraTrigger.eDRIVER_MODE.PUSH_PULL, false);

◆ 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
SourceTrigger source (eTRG_SOURCE)
TrgPOfftrue and source = 0, high side switch -> on, else switch is off
TrgPOntrue and source = 1, high side switch -> on, else switch is off
TrgNOfftrue and source = 0, low side switch -> on, else switch is off
TrgNOntrue and source = 1, low side switch -> on, else switch is off
Example:
C#:
// turn on, as PushPull
pCamTrig.SetAll(VIB_NET.CameraTrigger.eTRG_SOURCE.ON, false, true, true, false);
//stay on, is inverted
pCamTrig.SetAll(VIB_NET.CameraTrigger.eTRG_SOURCE.ON, true, false, false, true);
// stay on, as OpenDrain
pCamTrig.SetAll(VIB_NET.CameraTrigger.eTRG_SOURCE.ON, false, true, false, false);
// is the same as above(OpenDrain)
pCamTrig.SetAll(VIB_NET.CameraTrigger.eTRG_SOURCE.ON);

Property Documentation

◆ Type

VIB_NET::CameraTrigger::Type
get

Returns the device type for the current instance, see eDEVICE_TYPE

VIB_NET
All relevant classes and functions are residing in this namespace.
Definition: CameraLinkIn.cpp:6
VIB_NET::CameraTrigger::eTRG_SOURCE
eTRG_SOURCE
Camera trigger source, used by Set() and SetAll()
Definition: VIB_NET.h:1209
VIB_NET::CameraTrigger
This class controls the digital camera trigger output.
Definition: VIB_NET.h:1203
VIB_NET::CameraTrigger::eDRIVER_MODE
eDRIVER_MODE
Output driver mode
Definition: VIB_NET.h:1254