VisionBox .NET Library
VIB_NET::TriggerGenerator Class Reference
+ Inheritance diagram for VIB_NET::TriggerGenerator:

Detailed Description

This module controls the FPGA Trigger Unit.

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

Examples

Public Member Functions

UInt32 ConfigureGet (String ^ Command)
 Generic function to read data from the FPGA trigger unit. More...
 
void ConfigureSet (String ^ Command)
 Generic function for controlling the FPGA trigger unit. More...
 
void Reset ()
 Resets the device to default settings. More...
 
 TriggerGenerator ()
 Default constructor for the device object 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

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...
 

Constructor & Destructor Documentation

◆ TriggerGenerator()

VIB_NET::TriggerGenerator::TriggerGenerator ( )

Default constructor for the device object

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

Member Function Documentation

◆ ConfigureGet()

UInt32 VIB_NET::TriggerGenerator::ConfigureGet ( String ^  Command)

Generic function to read data from the FPGA trigger unit.

The command string is case insensitive. The syntax is described in the following table:

NameResult
VersionTrigger unit firmware version number
TrigInBinary representation of the Trigger Input signals
TrigInternBinary representation of the internal trigger signals
Counter<A...B>[,Reset]Current counter value with optional counter reset
Parameters
CommandCommand String^
Returns
RegisterValue Reference to result data
Example:
C#:
UInt32 TrigVersion=0;
UInt32 TrigInState=0;
//read the version(build date) of the trigger design
TrigVersion = pTriggerGenerator.ConfigureGet("Version");
//read the state of the TrigIn<0...X>:
TrigInState = pTriggerGenerator.ConfigureGet("TrigIn");

◆ ConfigureSet()

void VIB_NET::TriggerGenerator::ConfigureSet ( String ^  Command)

Generic function for controlling the FPGA trigger unit.

Each command string starts with the name of the parameter followed by a '=' character and the new value. The string is case insensitive.
Valid combinations of parameters and values are described in the following table:

UnitNameValueExample
Multiplexers TrigOut<0...3>_Mux <Input signal>[,invert] "MuxIntern0=GenA,invert"
MuxIntern<0...3>
Gen<A...B>_Mux
Signal Generator Gen<A...B>_tLow <Low time>[ms|ns|us(default)]
(set to 0 for external trigger)
"GenA_tLow=0"
Gen<A...B>_tHigh <High time>[ms|ns|us(default)]
(set to 0 for external trigger)
"GenA_tHigh=50us"
Gen<A...B>_tDelay <Delay time>[ms|ns|us(default)]
(only used in triggered mode)
"GenA_tDelay=2ms"
Trigger Logic LUT<0...1> <LUT equation> "LUT0=TrigIn1&TrigIntern0"
DividerA <Divider value>[,< InputEvent>] (default: TrigIn0_Rising) "DividerA=5,TrigIn2_Falling"
DividerA_Reset On|Off|TrigIntern2|TrigIntern3 "DividerA_Reset=Off"
Counter<A...B> <Max. Counter value>[,<InputEvent>] (default: ,TrigIn0_Rising) "CounterB=500,TrigIn0/1_Both"
Counter<A...B>_ON <Counter ON value> "CounterB_ON=100"
Counter<A...B>_OFF <Counter OFF value> "CounterB_OFF=200"
Counter<A...B>_Start Off|On|TrigIntern2|TrigIntern3 "CounterB_Start=On"
Counter<A...B>_Reset Off|Auto|TrigIntern2|TrigIntern3 "CounterB_Reset=Auto"
Interrupt IntTrigger TrigIn<0...3>[_Rising|_Falling|_Both|_Off] (default: _Rising)
TrigIntern<0...3>[_Rising|_Falling|_Both|_Off] (default: _Rising)
"IntTrigger=TrigIn0_Falling"

The command string can consist of multiple control commands, which are separated by spaces.
Each unit is controlled independently. For example changing TrigOut0 doesn't influence TrigOut1

Parameters
CommandCommand String^
Example:
C#:
//create a 1kHz signal
pTriggerGenerator.ConfigureSet("GenA_tLow=500us GenA_tHigh=500us");
//use it for output zero
pTriggerGenerator.ConfigureSet("TrigOut0_Mux=GenA");
//connect the generator to the camera trigger output 0
pCameraTrigger.Set(0,VIB_NET.CameraTrigger.eTRG_SOURCE.TRIGGEN_OUT0);

◆ Reset()

void VIB_NET::TriggerGenerator::Reset ( )

Resets the device to default settings.

See also VIB::TriggerGenerator::Reset().

Property Documentation

◆ Type

VIB_NET::TriggerGenerator::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:1183
VIB_NET::CameraTrigger
This class controls the digital camera trigger output.
Definition: VIB_NET.h:1177