• Aucun résultat trouvé

REAL TIME DIGITAL DISPLAY WITH ADJUSTABLE PERSISTENCE TIME FOR 2-D DETECTORS

N/A
N/A
Protected

Academic year: 2021

Partager "REAL TIME DIGITAL DISPLAY WITH ADJUSTABLE PERSISTENCE TIME FOR 2-D DETECTORS"

Copied!
8
0
0

Texte intégral

(1)

HAL Id: jpa-00225839

https://hal.archives-ouvertes.fr/jpa-00225839

Submitted on 1 Jan 1986

HAL is a multi-disciplinary open access archive for the deposit and dissemination of sci- entific research documents, whether they are pub- lished or not. The documents may come from teaching and research institutions in France or abroad, or from public or private research centers.

L’archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des établissements d’enseignement et de recherche français ou étrangers, des laboratoires publics ou privés.

REAL TIME DIGITAL DISPLAY WITH ADJUSTABLE PERSISTENCE TIME FOR 2-D

DETECTORS

P. Leyendecker, N. Vonthron, C. Boulin

To cite this version:

P. Leyendecker, N. Vonthron, C. Boulin. REAL TIME DIGITAL DISPLAY WITH ADJUSTABLE

PERSISTENCE TIME FOR 2-D DETECTORS. Journal de Physique Colloques, 1986, 47 (C5), pp.C5-

167-C5-173. �10.1051/jphyscol:1986522�. �jpa-00225839�

(2)

REAL TIME DIGITAL DISPLAY WITH ADJUSTABLE PERSISTENCE TIME FOR 2-D DETECTORS

P. LEYENDECKER, N. VONTHRON and C.J. BOULIN

EMBL,

Physical Instrumentation Division, ~ o s t f a c h 102209, 0-6900 Heidelberg, F. R. G.

Rbsumb - Lors de la mise en place d'un bchantillon ou d'un cristal sur une expbrience utilisant un dbtecteur bidimensionnel il est important de pouvoir suivre le clichb de diffraction. Nous pr&sentons une unit; de visualisation temps-rbel, ayant une rbsolution de

256

par

256

blGments, une frequence d'entrbe maximale del'ordre de IMHz, et possbdant une mbmoire d'accumulation profondede

16

bits. La visualisation est faite en

256

niveaux de gris sur un moniteur tblbvision standard. Un algorithme de dbcroissance est appliqub aux donnbes afin de produire une visualisation instantange fidsle.

Abstract - In the initial setting up of a crystal or a sample on a 2-D detector, it is often useful to monitor the diffraction pattern. We present a real-time display unit, having a resolution of

256

by

256

pixels, an input rate of up to

1

MHz, and a

16

bits accumulation range. The patterns are displayed on a standard TV monitor with

256

gray levels.

A

digitally imple- mented adjustable persistence scheme has been designed in order to provide a true life display.

I - INTRODUCTION

Modern molecular biology uses a very large number of different tools which include protein X-ray crystallography as well as fibre diffraction and small angle scatter- ing. The recording of X-ray patterns has long been done using films. One main reason is certainly the high spatial resolution and the integrating capability.

Nevertheless, the development of linear and two-dimensional electronic detectors has nowadays reached a state where it becomes possible to envisage routine use of these devices. One main advantage of the electronic detectors over film lies in the immediate availability of the digital data thus avoiding the tedious and time consuming step of film digitization. On top of that, the combined use of these detectors and very intense synchrotron radiation sources makes time-resolved measurements possible and therefore enables one to carry out kinetic studies of macromolecular changes.

At the EMBL, we currently use an area detector on the X 33 beam line at HASYLAB in HAMBURG for time-resolved small-angle scattering studies / I / . We also started work on protein crystallography in HEIDELBERG using a conventional rotating anode X-ray generator and a detector. In both cases the amount of collected data is such that appropriate interactive image processing systems for data evaluation after the experiment had to be developed 121. Our detectors are multi-wire proportional gas filled chambers and the readout is based on the delay line method / 3 , 4 / . We are currently using fast time to digital encoders to measure the event positions. The pattern recording is done by histogramming these event positions into a large memory.

The event rates we achieve with our present readout system are of the order of

200

to 300 KHz.

Article published online by EDP Sciences and available at http://dx.doi.org/10.1051/jphyscol:1986522

(3)

C5-168 JOURNAL DE PHYSIQUE

During set-up of a sample or data taking, the usefulness of a real-time display facility was immediately recognized. A first, simple solution had been implemented to fulfill the immediate needs. This first display module consisted of two digital to analog convecters getting the digital coordinates of each recorded event and driving a storage oscilloscope. Persistence (storage time) and beam intensity are adjusted accordingly to the event rate of the features the user wants to follow.

Although this device has proved to be useful it has a number of limitations such as a very poor dynamic range. Therefore it could not be considered as a definitive solution. We decided to use a similar approach but designed in a digital form which should overcome most of the basic limitations.

I1 - DESIGN CONSIDERATIONS

As real-time visualisation of a pattern is recognized to be an important part in the experimental set-up for X-ray crystallography, we designed a digital system able to cope with a) the event rates which can be reached by wire chambers (up to 1 MHz) and

b)

the large dynamic range one has to deal with while measuring crystal diffraction patterns (1 to some lo4).

Such

a system

should be designed as a stand-alone device which has a connection to the digital readout of the detector (a 16 bit bus with a strobe). It should provide the user with a good quality gray scale video picture. This system should work in parallel with the data acquisition but should not interfere with it.

a) - Image resolution and definition

The MWPC's we currently use produce patterns of 256 by 256 resolution elements. The imaging device should be able to cope with images of 256 by 256 pixels. However provision was made in the design in order to accommodate 512 by 512 pixels. The gray scale definition was fixed at 256 levels (eight bits) as this is the commonly used value for monochrome pictures.

b) - Real-time imaging constraints

In crystallography, measurements are made while the sample is rotating slowly and we found it necessary to provide an exact diffraction pattern during the rotation.

We have therefore implemented an adjustable persistence model to the histogramed data in order to get a picture which reflects as much as possible the current pattern. Previous experience with the simple analog solution showed that a half-life time constant ranging from 10 milli-seconds to 3 seconds would be sufficient for most of the situations we will have to monitor.

c)

- Thresholding capability

For some samples, diffuse diffraction can be relatively strong but of no interest to the experimenter. We added a possibility allowing the user to define a lower

threshold (in the range of 0 to 255) in order to 'clean' the picture produced on the screen. This thresholding is not applied at image registration time but at display time which will still enable weak reflexions to be seen and will also help to improve the image interpretation.

d) - Visualisation schemes

The recording of crystal diffraction patterns requires a large dynamic range and therefore an eight bit deep memory is too small for the pattern histograming. The apparent memory depth required is at least 16 bits. In order to be able to carry out the optimal video representation we decided to implement two modes: a) a square root scaling that allows the viewing of the whole memory dynamic range, b) a linear scaling for which the user can choose the 8 bit display window over the whole 16 bit range.

e) - General functions

Straight histogramming is also provided by setting the half-life time constant of

(4)

A fast memory erase is implemented as this is more or less standard on imaging devices.

f) - Graphic overlay

In addition, as we want to use this system for the protein crystallography project, we decided to implement a graphic overlay. This overlay can be used by the spot prediction program to add e.g. integration boxes over the image thus giving the user helpful information about the running of the experiment (squares, boxes, crosses ...

)

All these design considerations lead to the functional block diagram of figure 1.

DISPLAY PERSISTENCE TIME

M O M MICRO

J

ATTENUATOR COMPARATOR LOOK UP IMREMEN TOR

TABLES

-

VIDEO GRAPHIC UNIT

256r 256 MEMORY

GRAPHIC OVERLAY

Fig.

1

- Functional block diagram.

I11 - FUNCTIONAL DESCRIPTION

The different functional parts will be described in the following section.

a) - The memory and its controller

The main memory of the device is built around dedicated video memory chips: the TMS 4161 from Texas Instruments 151. This chip is a 64-K by one bit memory which differs from standard dynamic random access memories by the availability of an internal 256 bits wide shift register which can be clocked in and out at very high frequency

(up to 150 MHz). This serial port is clearly designed to be used as the line buffer for a raster scan video display system. The 256 bits serial register is loaded in parallel from the memory array within a single access cycle of about 400 nanoseconds.

A second random access port is available. It can be used to write and read to or from the memory (Figure 2).

The major advantage of this video memory is that only 2% of the time has to be spent for the refresh and display operations in a graphic system.

To handle the video-W's, we have implemented the dedicated TMS 9161 controller

circuit 161. This controller generates the signals needed to perform all the

operations with the VRAM's, including the transfers between the internal memory

array and shift register. Furthermore it carries out the generation of the blanking

and video synchronis.ation signals. The number of lines per frame, the display mode

(5)

C5-170 JOURNAL DE PHYSIQUE

(interlaced, non-interlaced), the timings for blanking and other synchronisation signals are all programmable (Figure 3). The working conditions are defined at initialisation time after power-up. The memory refresh and the shift register update are performed automatically during the blanking. This minimizes the external logic required around the memory.

ADDRESS CONTROL

I , I

I I

I MEMORY ARRAY I

I I

I I

CLOCK

Fig. 2 -.Block diagram of the dual ported video-RAM.

COMPOSITE VIDEO

Fig. 3 - The video system controller = functionality.

b) - Event acquisition

The X-Y coordinates sent by the detector are fed to a 16 words long input FIFO

memory working at a clock frequency of

10

MHz. This effectively prevents the loss of

(6)

cycle.

Data histogramming is performed via the random port in the following sequence: a) the content of the X-Y corresponding memory address is read out, b) an increment 'b' is added to the value, c) the result is stored back into the memory location which was addressed by the event position (Figure 4 ) . The complete readmodify-write cycle takes about 750 ns.

INCREMENT

"b"

1

MEMORY ARRAY

I /

I

I I I

I I I

Fig. 4 - Histogramming scheme using the random access port.

C)

- Persistence simulation

To simulate the persistence of the phosphor screen of a storage oscilloscope, the memory content has to be regularly updated as a function of time. The attenuation or intensity decay function is done by multiplying the memory values by a factor 'a' less than

1 .

For each line of the raster scan, the data are available during the video line duration (64 micro-seconds). We have used the ability of the video.RAM shift register to be clocked in and out and read and written from or to the memory array. The updating of each pixel of a video line is done with a fast multiplier working at 8 MHz. It means that at the end of the visualisation of a line the attenuated values of the corresponding pixelsareready to be transferred back to the memory (Figure 5 ) . The attenuation function is therefore performed at 50 Hz which is an adequate rate for a smooth decay function as it is the case with a phosphor. The persistence simulation appears therefore continuous. As already mentioned, each pixel value is multiplied by a factor 'a', less than one, fifty times a second. This factor is expressed as a function of the half-life t1/2:

1

(1)

a

=

- I (t1/2 in seconds)

Q L

Thus, for each value of this half-life time constant ranging from 10 milli-seconds to 3 seconds, we get a factor in the range of .25 to .995.

When an event occurs at location (X,Y), an increment 'b' is added to the previous

value of this location. If the count rate at this location is stationary and of

value N, its associated value No is incremented N/50 times after each correction for

attenuation. It is then displayed as N1 with N1 equal to the following expression:

(7)

C5-172 JOURNAL DE PHYSIQUE

N1

=

(No + a)

+

- N a b 50

The stationary condition (NI=No=N) gives us

: (2)

b

=

50

9

(I-a)

MEMORY ARRAY

w

CLOCK

Fig. 5 - Attenuation function implementation.

Thus for each half-life time constant we can define an increment. This increment is in the range of .25 to 37.5. Because of its linearity, the expression (2) applies even if N/50 is not an integer value. For very low event rates N, the content of the location will flicker around the average value.

To carry out the previously described intensity decay algorithm a 24 bit deep memory is required. The lower byte is only used as a decimal part to keep the desired accuracy in the computations.

d) - Histogramning mode

In this mode, the increment 'b' is equal to one and the attenuation function is bypassed. The erase function is performed by feeding zeros into the serial shift register associated with t$e video-RAM. The memory erase function is therefore accomplished in 20 milli-seconds.

e) - Display modes

For the square root scaling mode, the 16 bit data from the serial shift register are fed to a look-up table made by two identical 64 K-byte EPROM'S (250 ns cycle time).

It was necessary to make use of two identical tables, alternately selected, in order to achieve the required pixel speed of 125 ns.

For the linear visualisation mode, the 16 bit data is first compared to an eight bit user defined threshold ranging from

0

to 255. If the data is lower than the applied threshold, the display of the corresponding pixel is set to the black level. Other- wise, the data goes through a shift network used to scale the image into the

selected window.

(8)

prediction part of the processing software can be used to draw the data integration boxes on top of the Bragg reflexions. This enables the user to follow the experiment and will tell him immediately if some experimental conditions such as crystal position in the capillary have changed. Handling of the overlay graphics is carried out by an 8 bit microprocessor, which allows flexibility in the further developments of the overlay implementation. Comunication between the microprocessor and the data acquisition and data processing main computer is done via a standard RS 232 serial line.

IV - CONCLUSION

The entire circuitry, including a 5" TV monitor is housed in a 19 inch wide, 3 HE unit making it a compact piece of equipment.

The use of the video-memory integrated circuits was a determining choice for the feasibility of this project. We believe that their implementation in the design of new data acquisition stores will have to be seriously considered if one aims at very high counting rates as will be the case with future generations of detectors for synchrotron radiation.

REFERENCES

/I/ Svendsen, K. H., Koch, M. H. J., Boulin, C., Gabriel, A., Int. J. Biol. Macromol.

6 (1984) 298.

/2/ Flout, P. N., Nuclear Inst.

&

Meth. 201 (1982) 225.

/3/ Gabriel, A., Nuclear Inst.

&

Meth. K(1982) 223.

/ 4 / Boulin, C., Dainton, D., Dorrington, E., Elsner, E., Gabriel, A., Bordas, J.,

Koch, M. H. J.,Nuclear Inst.

&

Meth; 201 (1982) 209.

151 TMS 4161

:

Advance Information, Texas Instruments (1983).

161 VSC: Video System Controller, Preliminary specifications Rev. G, Texas

Instruments France B.P. 5, F-06270 Villeneuve-Loubet.

Références

Documents relatifs

Specifically, the Technology affordances of the real-time digital initiatives are real-time sensing, real-time mass visibility, real-time experimentation and

By modifying the format of the DSCs, ZoneOpt improves the analysis time (2s) by reducing the number of triggered rules. F irstContext operator forces the parser to consider only

soure paket to all reeived repair pakets in whih it

In Section 1.2 we give the main results for random walks in random sceneries, while Section 1.3 contains the results for sums of stationary sequences with long range dependence, and

Unlike other solutions targeting the advertisers which have full observations of each other’s state and reward, our algorithm optimizes the campaign performance for a single

L’archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des

This paper studies various priority metrics that can be used to progressively select sub-parts of a number of audio signals for real- time processing.. In particular, five

A first pilot survey covered a range of dispersion measures (DM) below 120 pc cm −3 , focusing on Galactic sources, and resulted in an upper limit on the transient rate at