Documentation Home Page ◇ RT-LAB Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.
OpNI6602 Event Generator
Block
Mask
Description
The OpNI6602 Event Generator block makes use of the counter/timers of the NI6602 card to generate a digital signal that can be toggled at a precise time during a calculation step.
The NI6602 card holds eight 32-bit counter/timers. The OpNI6602Event Generator block can monitor any number of these counters simultaneously, while each counter produces its own output signal. The input vectors specify the Event and Delta values for each counter monitored by the block.
The figure below shows an example of block inputs and the corresponding output signal waveform during four consecutive calculation steps.
In this drawing, the reference signal, X1, coming from the OpSyncNI6602 synchronization block, is connected to the GATE pin of the counters monitored by the block. This input clock signal is a pulse train, and its period is equal to the model calculation step, Ts.
At each time step, anEvent and Delta values pair is specified for each counter through the inports of the block.
The block can only produce one event per model calculation step. TheEvent input can only take one of the three values -1, 0, and 1.
A '-1' value means that the Y1 output signal during the next time step will hold its current value.
A '0' value means that the Y1 output signal will drop to its low level,
A '1' value means that the Y1 output signal will rise from low to high level during the next step.
The Delta value represents the time at which the transition on the outputs signal is to occur during the next calculation step. This value can be specified as a time ratio relative to the model calculation step Ts, or directly in seconds.
All possible Event and Delta values are summarized in the inputs section below.
The Y1 signal is produced at the counter output. The actual output pin numbers on the 68 pin connector are highlighted in the connector pin assignments section below.
Parameters
Bus Type | This popup menu enables the user to select the bus type of the target computer where the NI6602 card is installed. The options are PCI or PXI. |
---|---|
PCI index | Enter the PCI index (see definition)of the card on the PCI (or PXI) bus. |
Counter List | Enter the vector of counter numbers that will be monitored by this block. The counters are numbered from 0 to 7 and can be entered in any order. |
Clock Source | This option is disabled - Because instability of the output signal was observed at 80MHz, Event Generator counters use 20MHz Clock Source only. |
Polarity | Enables the user to invert the polarity of the output signal. By selecting'Active Low', a 0-1 transition will actually make the signal drop from 1 to 0. |
Delta unit | Select if the Delta input will be specified as a ratio of the time of the event over the duration of the step, or directly in seconds. |
Use Opsync signal from RTSI bus | When this option is selected and when the Route synchronization signal to RTSI bus option of the OpSync NI6602 block also selected, the connection between the GATE input pins and the synchronization signal is done internally. Otherwise, the connection must be externally done through the 68pin IO connectors. |
Synchronize | see definition. |
Inputs
The block is controlled using two inputs: the Event requested (rise or drop) and Delta, the time at which the event is to happen, as presented in the functional description section. An event requested during a given calculation step will happen only during the following calculation step.
The tables below summarize all possible values for the Event and Delta inputs.
Event: Type of transition to produce during the next calculation step.
Possibles Values | Description |
---|---|
-1 | Signal will remain constant during the calculation step (nothing will happen) |
1 | Signal will rise from 0 to 1 |
0 | Signal will drop from 1 to 0 |
Note: Requesting a signal rise while the signal is already up will not produce any transition at the output. The same applies if the signal is already down and drop is requested.
Delta: Time location of the transition relative to the beginning of the step. This value can be defined as a ratio of the time location of the event (dt) over the overall duration of the step (see figure above), or directly in seconds(which is the direct value of dt, see icon parameters).
Possible Values (ratio) | Description |
---|---|
0 <= x <= 1 | Time at which an event is to occur over duration of a calculation step (step size) |
Possible Values (seconds) | Description |
0 <= x <= step size | Number of second between the beginning of the next step and the event |
Outputs
This block has no outputs.
Characteristics and Limitations
Connector Pin Assignments
The GATE pin of each counter monitored by the OpNI6602 Event Generator block must be connected to the reference signal output by the OpSync NI6602 block. All GATE pins are highlighted in the table below.
The OpSync NI6602 synchronization signal can come from a different NI6602 card than the one currently in use by the OpNI6602 Event Generator block.
Note: The GATE pins do not need to be actually connected to the synchronization signal if this signal is routed to the RTSI bus. If the OpSync NI6602 synchronization signal comes from a different NI6602 card than the one currently in use by the OpNI6602 Event Generator block, both cards must be connected together with an RTSI cable.
Reminder: When both the OpNI6602 Event Generator and OpSync NI6602 blocks use the same card, counters 0 and/or 1 are reserved for the OpSync NI6602 block and cannot be used by the OpNI6602Event Generator block.
NI6602 68-pin connector
Pin Description | Number | Pin Description | Number |
---|---|---|---|
SOURCE2 | 34 | GND | 68 |
GND | 33 | GATE2 | 67 |
OUT2 | 32 | UP_DOWN2 | 66 |
SOURCE3 | 31 | GND | 65 |
GND | 30 | GATE3 | 64 |
OUT3 | 29 | UP_DOWN3 | 63 |
SOURCE4 | 28 | GND | 62 |
GND | 27 | GATE4 | 61 |
OUT4 | 26 | UP_DOWN4 | 60 |
SOURCE5 | 25 | GND | 59 |
GND | 24 | GATE5 | 58 |
OUT5 | 23 | UP_DOWN5 | 57 |
SOURCE6 | 22 | Reserved | 56 |
GATE6 | 21 | GND | 55 |
GND | 20 | UP_DOWN6 | 54 |
Reserved | 19 | OUT6 | 53 |
GND | 18 | SOURCE7 | 52 |
UP_DOWN7 | 17 | GATE7 | 51 |
OUT7 | 16 | GND | 50 |
DIO7 | 15 | GND | 49 |
GND | 14 | DIO6 | 48 |
DIO4 | 13 | DIO5 | 47 |
DIO3 | 12 | GND | 46 |
GND | 11 | DIO2 | 45 |
DIO0 | 10 | DIO1 | 44 |
OUT1 | 9 | Reserved | 43 |
GATE1 | 8 | GND | 42 |
SOURCE1 | 7 | GND | 41 |
UP_DOWN1 | 6 | UP_DOWN0 | 40 |
OUT0 | 5 | GND | 39 |
Reserved | 4 | Reserved | 38 |
GATE0 | 3 | Reserved | 37 |
SOURCE0 | 2 | GND | 36 |
+5V | 1 | Reserved | 25 |
Direct Feedthrough | No |
---|---|
Discrete sample time | No |
XHP support | Yes |
Work offline | No |
OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323
Follow OPAL-RT: LinkedIn | Facebook | YouTube | X/Twitter