This module controls the FPGA Trigger Unit.
See class VIB::TriggerGenerator in the VisionBox Interface Library for a detailed description.
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... | |
VIB_NET::TriggerGenerator::TriggerGenerator | ( | ) |
Default constructor for the device object
The device must be opened with Open() before it can be used.
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:
Name | Result |
---|---|
Version | Trigger unit firmware version number |
TrigIn | Binary representation of the Trigger Input signals |
TrigIntern | Binary representation of the internal trigger signals |
Counter<A...B>[,Reset] | Current counter value with optional counter reset |
Command | Command String^ |
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:
Unit | Name | Value | Example |
---|---|---|---|
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
Command | Command String^ |
void VIB_NET::TriggerGenerator::Reset | ( | ) |
Resets the device to default settings.
See also VIB::TriggerGenerator::Reset().
|
get |
Returns the device type for the current instance, see eDEVICE_TYPE