background image

a) the acquisition in progress

In this case the new acquisition will be not started, and trigger impulse will be counted by
the module of lost triggers counter (TrgOverrun) and the bit  TrgOvrScr_A in CAPT_REG
will be set. The value of this counter is written to the acquisition header immediately after
it is finished. This value shows the amount of triggers that was lost since the previous
acquisition was finished – during the actual acquisition.

b) the frequency of trigger pulses is larger than 10kHz (their period is smaller than 100µs)

OPBOX-2.1   has   internal   module   limiting   maximal   repetition   speed   to   10kHz   (trigger
period   100µs).   Trigger   pulses   coming   quicker   than   100µs   since   previous   trigger   are
ignored   and   their   amount   is   counted   by   TrgOverrun   module   and   bit   TrgOvrScr_H   in
CAPT_REG is set);

c) the memory of internal buffer is full:

If   the   buffer   has   no   place   to   store   the   next   acquisition   frame,   all   trigger   pulses   are
counted by the TrgOverrun counter and the TrgOvrScr_F in register CAPT_REG is set).
This register are written to the header after the next acquisition is made (after freeing
the place in the buffer);

d) the power supply control system has informed about the power supply failure

OPBOX-2.1   has   a   power   control   system   fulfilling   the   needs   of   USB-2.0   interface
specification   and   to   secure   the   system   for   the   case   of   overload   of   power   supply.
POWER_CTRL   register   contains   the   description   of   status   flags   of   the   power   supply
module. If on trigger event any of this flags shows error, the acquisition is not made and
the pulse is counted by the TrgOverrun counter and the bit TrgOvrScr_P in CAPT_REG is
set).   It   prevents   acquisitions   with   potentially   erroneous   or   unstable   settings     (for
example voltage level).

After receiving the frame, it is possible to check in the header the amount of lost triggers
since the start of previous acquisition and the reason for this event (CAPT_REG register).
Each   of     flag   TrgOvrScr_A,   TrgOvrScr_H,   TrgOvrScr_F   and   TrgOvrScr_P   in   CAPT_REG
register informs about the fact, if at least one trigger event took place, that was missed for
some  concrete   reason.  This  flags  can   be  helpful   in  quick  diagnosis  of   problems  with   the
device,   measurement   speed,   etc.   It   is   possible   to   set   more   than   one   flag.   Reasons   for
loosing   trigger   events   could   overlap,   for   example   in   the   case,   if   the   next   trigger   event
occurrs  during   on   going   acquisition  and  earlier  than   100µs  after  its  beginning  both  flags
TrgOvrScr_A and TrgOvrScr_H will be set.

8.5. Resetting of Acquisition buffer

Acquisition   buffer   of   the   device   can   be   reset   at   each   moment   with   the   help   of   the

DIRECT_RESET_FIFO

 (0xD2) command. This command causes that all acquisitions will be

removed   from   the   buffer.  

Resetting   acquisition   buffer   do   not   reset   the   acquisition

settings!

 Such parameters as PACKET_LENGTH, DEPTH remaining unchanged. Resetting all

settings is possible with the global reset command: DIRECT_RESET (0xD1)). Global reset
resets acquisition buffer too.

8.6. Time gain compensation curve (TGC)

Configuring the device to work with the generation of arbitrary TGC curve during acquisition
in FIFO mode requires appropriate preparation of the table of TGC curves with the size, that
is equal the size of the buffer for this curves (TGC memory). The size of this buffer is equal
the size of the acquisition buffer (256kB)
The   table   of   TGC   curves   must   include  PACKET_LEN_MAX  amount   of   copies   of   a   single
amplification curve  with the length DEPTH bytes, that  must be placed in the whole table
with   the   distance   of   FRAME_SIZE   bytes   and   shifted   by   HEADER_SIZE=54   bytes   in   the
relation to the begin of each frame. First 54 bytes should be written with the first value of
amplification from the TGC curve.
The detailed structure of the TGC curves table is shown on the following diagram:

Summary of Contents for OPBOX-2.1

Page 1: ...48 071 329 68 54 fax 48 071 329 68 52 e mail optel optel pl http www optel pl Wroc aw OPBOX ver 2 1 Miniature ultrasonic data acquisition system with integrated pulser receiver Description and manual...

Page 2: ...Packet 7 5 7 Acquisition in real time 7 6 Header of Acquisition Frame 9 7 Configuration and maintenance of acquisition in real time 10 8 Comments to the acquisition settings 12 8 1 Calculating maxima...

Page 3: ...A D converter Resolution 10 bit 8 bits are stored Maximum input voltage 0 5V Sampling frequency switchable MHz 100 50 33 3 25 20 16 7 14 3 12 5 11 1 10 9 1 8 3 7 7 7 14 i 6 67 Data buffer 1 262090 25...

Page 4: ...igital input GPI5 or IDX input for encoder module ENC2 9 GPO 1 TTL 5V Digital output GPO1 10 GPO 3 TTL 5V Digital output GPO3 11 GPI 0 TTL LVTTL Digital input GPI0 or trigger input EXT_X or CHA input...

Page 5: ...POS_L 0x50 10 TRG_OVERRUN 0x12 42 PDB_MAX_POS_H 0x52 11 XY_DIVIDER 0x14 43 PDC_START_L 0x54 12 TIMER 0x16 44 PDC_START_H 0x56 13 TIMER_CAPT 0x18 45 PDC_STOP_L 0x58 14 ANALOG_CTRL 0x1A 46 PDC_STOP_H 0x...

Page 6: ...o another computer and checked again During data acquisition the device automatically block the measurement command if any of status flags signals a failure In the case if the voltage of USB power sup...

Page 7: ...Disabled switched on with bit 9 storeDisable in register MEASURE causes that data from ADC converter are not stored to the memory of the device Only acquisition header is stored This mode can be used...

Page 8: ...ion Data Header Acquisition Data HEADER_SIZE 54 bytes DEPTH 1 262090 bytes Frame FRAME_SIZE HEADER_SIZE DEPTH Packet PACKET_LENGTH 3 Frames Figure 5 2 Data organization in Header and Packets in StoreD...

Page 9: ...crossing position 21 15 8 useful bits 17 0 22 0x38 23 16 23 0x00 reserved 24 PDA MaxVal 0x3A 7 0 PDA gate maximum value of signal in the gate 25 0x00 reserved 26 PDA MaxPos 0x3C 7 0 PDA gate position...

Page 10: ...ACKET_LENGTH trying to read data before will cause failure reading error timeout the time needed to fulfill all acquisitions depends mostly on a chosen trigger source and the size of Measurement Windo...

Page 11: ...ning in the buffer of the device N should be written to the register PACKET_LEN Only in this situation the change of PACKET_LEN register to the smaller one do not reset the frame buffer in the device...

Page 12: ...large throughput of measurement data from the device to the PC one should try to increase the length of the packet that allows to diminish the amount of calls of data check function PACKET_READY and...

Page 13: ...s the setting of PACKET_LEN to PACKET_LEN_MAX maximal possible with new DEPTH setting 8 3 2 Changing of the length of acquisition packet PACKET_LEN Changing the length of acquisition packet similar as...

Page 14: ...eader the amount of lost triggers since the start of previous acquisition and the reason for this event CAPT_REG register Each of flag TrgOvrScr_A TrgOvrScr_H TrgOvrScr_F and TrgOvrScr_P in CAPT_REG r...

Page 15: ...one During transmission of the TGC curves table to the device it is necessary to block the triggering of acquisitions It is recommended to use for this purpose the zeroing of bit 4 Trigger Enable in...

Page 16: ...and writing the position of this sample in the register PDx_REF_POS_L and _H 2 Mode Rising detects rising slope first event occurs when one sample is lower than PDx_REF_VAL and the next sample is high...

Page 17: ...4 Connect the encoder power supply external 5 Set the configuration bits of the module work mode negation input filter in the ENCx_CTRL register of chosen encoder module 6 Set bit 0 Encoder X Enable...

Reviews: