Spectrum MI.20xx manuel d'utilisation

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96

Aller à la page of

Un bon manuel d’utilisation

Les règles imposent au revendeur l'obligation de fournir à l'acheteur, avec des marchandises, le manuel d’utilisation Spectrum MI.20xx. Le manque du manuel d’utilisation ou les informations incorrectes fournies au consommateur sont à la base d'une plainte pour non-conformité du dispositif avec le contrat. Conformément à la loi, l’inclusion du manuel d’utilisation sous une forme autre que le papier est autorisée, ce qui est souvent utilisé récemment, en incluant la forme graphique ou électronique du manuel Spectrum MI.20xx ou les vidéos d'instruction pour les utilisateurs. La condition est son caractère lisible et compréhensible.

Qu'est ce que le manuel d’utilisation?

Le mot vient du latin "Instructio", à savoir organiser. Ainsi, le manuel d’utilisation Spectrum MI.20xx décrit les étapes de la procédure. Le but du manuel d’utilisation est d’instruire, de faciliter le démarrage, l'utilisation de l'équipement ou l'exécution des actions spécifiques. Le manuel d’utilisation est une collection d'informations sur l'objet/service, une indice.

Malheureusement, peu d'utilisateurs prennent le temps de lire le manuel d’utilisation, et un bon manuel permet non seulement d’apprendre à connaître un certain nombre de fonctionnalités supplémentaires du dispositif acheté, mais aussi éviter la majorité des défaillances.

Donc, ce qui devrait contenir le manuel parfait?

Tout d'abord, le manuel d’utilisation Spectrum MI.20xx devrait contenir:
- informations sur les caractéristiques techniques du dispositif Spectrum MI.20xx
- nom du fabricant et année de fabrication Spectrum MI.20xx
- instructions d'utilisation, de réglage et d’entretien de l'équipement Spectrum MI.20xx
- signes de sécurité et attestations confirmant la conformité avec les normes pertinentes

Pourquoi nous ne lisons pas les manuels d’utilisation?

Habituellement, cela est dû au manque de temps et de certitude quant à la fonctionnalité spécifique de l'équipement acheté. Malheureusement, la connexion et le démarrage Spectrum MI.20xx ne suffisent pas. Le manuel d’utilisation contient un certain nombre de lignes directrices concernant les fonctionnalités spécifiques, la sécurité, les méthodes d'entretien (même les moyens qui doivent être utilisés), les défauts possibles Spectrum MI.20xx et les moyens de résoudre des problèmes communs lors de l'utilisation. Enfin, le manuel contient les coordonnées du service Spectrum en l'absence de l'efficacité des solutions proposées. Actuellement, les manuels d’utilisation sous la forme d'animations intéressantes et de vidéos pédagogiques qui sont meilleurs que la brochure, sont très populaires. Ce type de manuel permet à l'utilisateur de voir toute la vidéo d'instruction sans sauter les spécifications et les descriptions techniques compliquées Spectrum MI.20xx, comme c’est le cas pour la version papier.

Pourquoi lire le manuel d’utilisation?

Tout d'abord, il contient la réponse sur la structure, les possibilités du dispositif Spectrum MI.20xx, l'utilisation de divers accessoires et une gamme d'informations pour profiter pleinement de toutes les fonctionnalités et commodités.

Après un achat réussi de l’équipement/dispositif, prenez un moment pour vous familiariser avec toutes les parties du manuel d'utilisation Spectrum MI.20xx. À l'heure actuelle, ils sont soigneusement préparés et traduits pour qu'ils soient non seulement compréhensibles pour les utilisateurs, mais pour qu’ils remplissent leur fonction de base de l'information et d’aide.

Table des matières du manuel d’utilisation

  • Page 1

    SPECTRUM SYSTEMENTWICKLUNG MICROELE C TRONIC GMBH · AHRENSFELDER WEG 13-17 · 2292 7 GROSSHANSDORF · GERMANY PHONE: +49 (0)4102-6956-0 · FAX: +49 (0)4102-6 956-66 · E-MAIL: in fo@spec.de · INT ERNET: http://www.spec.de MI.20xx fast 8 bit transient recorder, A/D converter bo ard for PCI bus Hardware Manual Software Driver Manual English version[...]

  • Page 2

    (c) SPECTRUM SYSTEMENTWICKLUNG MICR OELECTRONIC GMBH AHRENSFELDER WEG 13-17, 22927 GROSSHANSDORF, GERM ANY SBench is a registered trademark of Spectr um Systementwick lung Microelectronic G mbH. Microsoft, Visual C++, Visual Basic, Windows, Windows 98, Windows NT, Win dow 2000 and Windows XP are tradenarks/registered trademarks of Microsoft Corpora[...]

  • Page 3

    3 Introduction ................................................... ............................. ................................... . ... 6 Preface ............................................................................................................ ................................................................... 6 General Information ..[...]

  • Page 4

    4 Programming the Board ......................... .................................... .................................... . 36 Overview .................. ............................................................................................................. ........................................... 36 Register tables ....................[...]

  • Page 5

    5 Option Multiple Recording ................................................................. .............................. 73 Recording modes ........................................................................ ....................................................................................... 73 Standard Mode ............................[...]

  • Page 6

    6 MI.20xx Manual Preface Introduction Introduction Preface This manual provides detailed information on the hardware featur es of your Spectrum instrumentation boar d. This information inc ludes tech- nical data, specifications, block diagram and a connector description. In addition, this guide takes you thr ough the process of installi ng your boa[...]

  • Page 7

    Introduction Different models of the MI.20xx series (c) Spectrum GmbH 7 Different models of the MI.20xx series The following overwiew shows the different available models of th e MI.20xx series. They differ in th e number mounted generation modules and the number of available channels. You can also see the model dependant allocation of the output c[...]

  • Page 8

    8 MI.20xx Manual Additional options Introduction Additional options Extra I/O (Opti on -XMF) With this simple-to-use enhancement it is possible to control a wide range of external instruments or other equipment. Therefore you have 24 digital I/O and the 4 analog outputs available. The asynchronous I/Os of the extra I/O option are useful if an exter[...]

  • Page 9

    Introduction Additional options (c) Spectrum GmbH 9 Starhub The star hub module allows the syn- chronisation of up to 16 MI boards. It is possible to synchronise boards of the same type with each other as well as different types. The module acts as a star hub for clock and trigger signals. Each board is connected with a small ca- ble of the same le[...]

  • Page 10

    10 MI.20xx Manual The Spectrum type plate Introduction The Spectrum type plate The Spectrum type plate, which consists of the follo wing components, can be found on all of our boards. The board type, consisting of the two lette rs describing the bus (in this case MI for the PCI bus) an d the model number. The size of the on-board installed memo ry [...]

  • Page 11

    Introduction Hardware information (c) Spectrum GmbH 11 Hardware information Block diagram Technical Data Resolution 8 bit Dimension 312 mm x 107 mm Differential l inearity error (ADC ) 0.5 LSB typ. Width (Sta ndard) 1 full size slot Integral linearity err or (ADC) 0.5 LSB typ. Width (with star hub option) 2 full size slots Multi: T rigger to 1st sa[...]

  • Page 12

    12 MI.20xx Manual Hardware information Introduction Dynamic Parameters Dynamic parameters are measured at ± 1 V input range (if no othe r range is state d) and 50 Ohm termination with the samplerate s pecified in the table. Measure d parameters are a vera- ged 20 times to get typical values. T est signal is a pure sine wave of the specified fr equ[...]

  • Page 13

    Hardware Installation System Requirements (c) Spectrum GmbH 13 Hardware Installation System Requirements All Spectrum MI.xxxx instrumen tat ion boards are compliant to the PCI standard and require in general one fr ee full length slot. Depending on the installed options additional free slots can be necessary. Warnings ESD Precautions The boards of [...]

  • Page 14

    14 MI.20xx Manual Installing the board in the system Hardware Installation Installing a board with dig ital inputs/outputs Before installing the board you first need to unscrew and remove the dedicated blind-br ackets usually mounted to cover unused s lots of your PC. Please keep the screws in reach to fa sten your Spectrum board and the extra brac[...]

  • Page 15

    Hardware Installation Installing the board in the system (c) Spectrum GmbH 15 Installing multiple boa rds synchronized b y starhub Hooking up the boards Before mounting several synchronized boards for a multi channel system into the PC yo u can hook up the boar ds with their synchr onization cables first. If there is enough space in your computer?[...]

  • Page 16

    16 MI.20xx Manual Installing the board in the system Hardware Installation Installing multiple synchronized boards Hooking up the boards Before mounting several synchronized boards for a multi channel system into the PC you can hook up the bo ards with the synchron ization cable first. If there is enough space in your computer’s case (e.g. a big [...]

  • Page 17

    Software Driver Installation Interrupt Sharing (c) Spectrum GmbH 17 Software Driver Installation Before using the board a driver must be installed that matches th e operating system. The installati on is done in different ways depending on the used operating system. The driver that is on CD supports all boards of the MI, MC and MX series. T hat mea[...]

  • Page 18

    18 MI.20xx Manual Windows 98 Software Driver Installation Windows 98 Installation When installing the board in a Win- dows 98 system the Spectrum board will be recognized automatically on the next start-up. The system offers the direct installa- tion of a driver for the board. Let Windows search automatically for the best driver for your system. Se[...]

  • Page 19

    Software Driver Installation Windows 98 (c) Spectrum GmbH 19 After clicking the driver info button the detailed vers ion information of the driver is shown. In the case of a support question this information must be pr esented together with the board’s serial number to the support team to help finding a fast solution. Driver - Update If a new dri[...]

  • Page 20

    20 MI.20xx Manual Windows 2000 Software Driver Installation Windows 2000 Installation When installing the board in a Windows 2000 system the Spectrum board will be rec- ognized automatically on the next start-up . The system offers the direct in- stallation of a driver for the board. Let Windows search automa- tically for the best driver for your s[...]

  • Page 21

    Software Driver Installation Windows 2000 (c) Spectrum GmbH 21 Driver - Update If a new driver version should be installe d no Spectrum board is allowed to be in us e by any software. So please stop and exit all software that could access the boards. A new driver version is direct- ly installed from the device manager. Therefore please open the pro[...]

  • Page 22

    22 MI.20xx Manual Windows XP Software Driver Installation Windows XP Installation When installing the board in a Windows XP system the Spectrum board will be rec- ognized automatically on the next start-up. The system offers the direct instal lation of a driver for the boa rd. Do not let Windows automatically search for the best driver, becau- se s[...]

  • Page 23

    Software Driver Installation Windows XP (c) Spectrum GmbH 23 On the property page Windows XP shows the dat e and the version of the installed driver. After clicking the driver details button the detailed version inform ation of the driver is shown. In the case of a support question this inform ation must be presented together with the board’s ser[...]

  • Page 24

    24 MI.20xx Manual Windows NT Software Driver Installation Windows NT Installation Under Windows NT the Spectr um driv er must be in- stalled manually. The driver is found on CD in the directory InstallWinNTDrv. Please start the „Setup.exe“ pro- gram. The installation is per- formed totally automatically, simply click on the „Next“ button.[...]

  • Page 25

    Software Driver Installation Linux (c) Spectrum GmbH 25 Linux Overview The Spectrum boards are delivered with drivers for linux. It is necessary to install them manual ly following th e steps explaine d afterwards. The linux drivers can be found on CD in the directory /Driver/linu x. As l inux is an open source operating system there are seve ral d[...]

  • Page 26

    26 MI.20xx Manual Linux Software Driver Installation Installing the device You connect a device to the driver with the mknod command. The ma jor number is the number of the driver as shown in the last st ep, the minor number is the index of the board starting with 0. This step must only be done once for the system where the boards are in stalled in[...]

  • Page 27

    Software Software Overview (c) Spectrum GmbH 27 Software This chapter gives you an overview about the structure of the dr ivers and the software, where to find and how to use the exa mples. It detailed shows how the drivers are included under di fferent programm ing languages and where the differences are when callin g the driver functions from dif[...]

  • Page 28

    28 MI.20xx Manual C/C++ Driver Interface Software C/C++ Driver Interface C/C++ is the main programming language for which the drivers have been build up. Theref ore the interface to C/C++ is the best m atch . All the small examples of the manual showing different parts of the hard ware programming are done with C. Header fil es The basic task befor[...]

  • Page 29

    Software C/C++ Driver Interface (c) Spectrum GmbH 29 Other Windows C/C++ compilers Include Driver To access the driver, the driver functions must be loaded from the driver dll. This can be easily done by standard windows func tions. There is one example in the directory /Examples/ other that shows the process. After loading the functions from the d[...]

  • Page 30

    30 MI.20xx Manual C/C++ Driver Interface Software Function SpcSetPa ram All hardware settings are based on software registers that can be set by the function SpcSetParam. This function sets a registe r to a defined value or executes a command. The board must first be initialized. The available software registers for the driver are listed i n the bo[...]

  • Page 31

    Software C/C++ Driver Interface (c) Spectrum GmbH 31 Under Linux the additional parameter nBytesPe rSample must be used for this function. For all boards with 8 bit resolution the p arameter is „1“, for all boards with 12, 14 or 16 bit resolution this paramet er has to be „2“. Under Linux the value „hDrv“ must contain th e handle that w[...]

  • Page 32

    32 MI.20xx Manual Delphi (Pascal) Programming Interface Software Delphi (Pascal) Pr ogramming Interface Type definition All Spectrum driver functions are using pr e-defined variable types to cover different operating systems and to use the same dri ve r interface for all programming languages. Unde r Delphi it is necessary to de fine these types on[...]

  • Page 33

    Software Delphi (Pascal) Programming Interface (c) Spectrum GmbH 33 This function is only available on generator or i/o boar ds. The function is not available on acquisition boards. Function SpcGetData Reads data from the board from a specific me mo ry channel. The board must first be init ialize d. The value „nr“ contains the inde x of the boa[...]

  • Page 34

    34 MI.20xx Manual Visual Basic Programming Interface Software Visual Basic Prog ramming Interface The Spectrum boards can be used together with Microsoft Visual Ba sic as well as with Microsoft Visual Basic for Applications. T his allows per example the direct access of the hardwa re from within Microsoft Ex cel. The interface betw een th e program[...]

  • Page 35

    Software Visual Basic Programming Interface (c) Spectrum GmbH 35 Function SpcGetParam The function SpcGetParam reads out software registers or status information. The board must first be initialized. The available software re- gisters for the driver are listed in the board specific part of th e documentation below. The value „nr“ contains the i[...]

  • Page 36

    36 MI.20xx Manual Overview Programming the Board Programming the Board Overview The following chapters show you in detail how to program the different aspects of the board. For every topic there’s a small ex ample. For the examples we focussed on Visual C++. Ho wever as shown in the last chapter the differences in programming the board under dif [...]

  • Page 37

    Programming the Board Initialization (c) Spectrum GmbH 37 This means as a result that it is not nece ssary to check each driver call for an error but to check for an error before the boa rd is started to see whether all settings ha ve been valid. By reading all the error information one can easily examine wher e the error occured. The following tab[...]

  • Page 38

    38 MI.20xx Manual Initialization Programming the Board Hardware versi on Since all of the MI, MC and MX boards from Spectrum are modular boards, they consis t of one base board and one or two (only PCI and CompactPCI) piggy-back modules. This register SPC_PCIVERSION gi ves information about the revision of either the base board and the mo- dules. N[...]

  • Page 39

    Programming the Board Initialization (c) Spectrum GmbH 39 Installed features and options The SPC_PCIFEATURES register informs you about the options, that are installed on the b oard. If you want to know about one opti on being installed or not, you need to read out the 32 bit value and mask the interesting bit. The following example demonstrates ho[...]

  • Page 40

    40 MI.20xx Manual Powerdown and reset Programming the Board Example program for the board initialization The following example is only an exerpt to give you an idea on how easy it is to initialize a Spectrum board. Powerdown and reset Every Spectrum board can be set to powerdown mode by software. In this mode the board is theref ore consuming less [...]

  • Page 41

    Analog Inputs Channe l Selection (c) Spectrum GmbH 41 Analog Inputs Channel Selection One key setting that influences all other possible settings is th e channel enable register. An unique feature of the Spectrum b oards is the possibility to program the number of channels you want to use. All on-board memory ca n then be used by these activated ch[...]

  • Page 42

    42 MI.20xx Manual Setting up the inputs Analog Inputs Setting up the inputs Input ranges This analog acquisition board uses separate input amplifiers and converters on each ch annel. This gives you the possibility to set up the de- sired and concerning your application best suiting input range also separately for each ch annel. The input ranges can[...]

  • Page 43

    Analog Inputs Setting up the inputs (c) Spectrum GmbH 43 Input offset In most cases the external signals will not be symm etrically re- lated to ground. If you want to acquire such as y mmetrical sig- nals, it is possible to use the smallest input range that matches the biggest absolute signal am plitude without exceeding the range. The figure at t[...]

  • Page 44

    44 MI.20xx Manual Setting up the inputs Analog Inputs Input termination All inputs of Spectrum’s analog boards can be terminated separately with 50 Ohm by so ftware programming. If you do so, please m ake sure that your signal source is able to deliver the higher output currents. If no terminat ion is used, the inputs have an impedance of 1 Megao[...]

  • Page 45

    Standard acquisition modes General Information (c) Spectrum GmbH 45 Standard acquisition modes General Information The standard mode is the easiest and mostly used mode to acquire analog data with a Spectrum A/D board. In standard recording m ode the board is working totally independant from the host system (in most cases a standar d PC), after the[...]

  • Page 46

    46 MI.20xx Manual Programming Standard acquisition modes The values depend on the number of activa ted channels and on the type of board being used. The minimum stepsizes for s etting up the mem- size and the postcounter are shown in the table below. Minimum and stepsize of memsize and posttrigger in samples Starting without interrupt (classic mode[...]

  • Page 47

    Standard acquisition modes Programming (c) Spectrum GmbH 47 Command register If the board is started in the interrupt mode the task calling the start function will not return until the board has finished. If no trigger e vent is found or the external clock is not present, this functio n will wait until the program is terminated from the taskmanager[...]

  • Page 48

    48 MI.20xx Manual Programming Standard acquisition modes Please refer to the relating chapter earlier in this manual. Th e examples in this section are written in Visual C++ for Windows , so the examples differ a little bit for the use with linux. As the data is read out individually for ev ery memory channel, it is important to kn ow where the dat[...]

  • Page 49

    FIFO Mode Overview (c) Spectrum GmbH 49 FIFO Mode Overview General Information The FIFO mode allows to record data continuously and trans- fer it online to the PC (acquisi tion boards) or allows to write data continuously from the PC to the board (generation boards). Therefore the on-board memory of the board is used as a continuous buffer. On the [...]

  • Page 50

    50 MI.20xx Manual Programming FIFO Mode When using FIFO mode together with one of the options that allow to have gaps in the acquisiton like Multiple Recording or Gate d Sampling one can even run the board with higher sample rates. It just has to be sure that the average sample rate (calculated with acqui sition time and gap) does not exceed the ab[...]

  • Page 51

    FIFO Mode Programming (c) Spectrum GmbH 51 Analog acquisition or generation boards Digital I/O (701x or 702x ) or pattern generator boards (72xx) Digital I/O board 7005 only We at Spectrum achieved best results when programming the buffer leng th to a number of samples that can hold approximately 100 ms of data. However if going to the limit of the[...]

  • Page 52

    52 MI.20xx Manual Programming FIFO Mode FIFO mode In normal applications the FIFO mode will run in a loop and process one buffer after the other. There are a few special command s and regi- sters for the FIFO mode: The start command and the wait command both wa it for the signal from the driver that th e next buffer has to be processed. This signal[...]

  • Page 53

    FIFO Mode Programming (c) Spectrum GmbH 53 The following example shows how to sort the channel data when us ing 4 channels in FIFO mode: Sample for mat The sample format in FIFO mode does not differ from the one of the standard (non FIFO) mode. Please refer to the relating passa ge concerning the sample format in the st andard acquisition chapter. [...]

  • Page 54

    54 MI.20xx Manual Overview Clock generation Clock generation Overview The Spectrum boards offer a wide variety of different clock mode s to match all the customers need s. All the clock modes are des cribed in detail with programming examples belo w. This chapter simply gives you an overview which clock mode to select: Standard internal sample rate[...]

  • Page 55

    Clock generation Internally generated sample rate (c) Spectrum GmbH 55 Maximum internal sample rate in MS/s Using plain quartz with no PLL In some cases it is useful for the application not to have the on-board PLL activated. Although the PLL used on the Spectrum boards is a low- jitter version it still produces more cloc k jitter than a plain quar[...]

  • Page 56

    56 MI.20xx Manual Internally generated sample rate Clock generation Termination of the clock input If the external connector is used as an in put, either for fee ding in an external reference clock or for ex ternal clocking you c an enable a 50 Ohm termination on the board. If the termination is disabled, the impedance is 1 Me gaohm. Please make su[...]

  • Page 57

    Clock generation Internally generated sample rate (c) Spectrum GmbH 57 External cloc k with divide r The extra clock divider can be used to divide an external fed in clock by a fixed value. The exte rnal clock must be > 1 MS/s. T his divided clock is used as a sample clock for the board. Available divider values Register V alue Direction Descrip[...]

  • Page 58

    58 MI.20xx Manual General Description Trigger modes and appendant registers Trigger modes and appendant registers General Description The trigger modes of the Spectrum MI, MC an d MX A/D boards are very complex and give yo u the possibility to detect nearly any t rigger event, you can think of. You can choose between seven external TTL tr igger mod[...]

  • Page 59

    Trigger modes and appendant registers External TTL trigger (c) Spectrum GmbH 59 If you choose an external trigger mode th e SPC_TRIGGEROUT register will be overwri tten and the trigger connector will be used as an input anyways. As the trigger connector is used as an input, yo u can decide wh ether the input is 50 Ohm terminated or not. If you enab[...]

  • Page 60

    60 MI.20xx Manual External TTL trigger Trigger modes and appendant registers Positive and negative TTL trigger This mode is for detecting the ri sing and falling edges of an ex- ternal TTL signal. The board will trig ger on the first rising or falling edge that is detected after starting the board. The next triggere- vent will then be detected, if [...]

  • Page 61

    Trigger modes and appendant registers External TTL trigger (c) Spectrum GmbH 61 TTL pulsewidth trigger for long LOW pulses This mode is for detecting LOW pu lses of an external TTL signal that are longer than a programm ed pulsewidth. If the pulse is shorter than the programmed pulsewidth, no trigger will be detec- ted. The board will trigger on th[...]

  • Page 62

    62 MI.20xx Manual Channel Trigger Trigger modes and appendant registers Channel Trigger Overview of the channel tri gger registers The channel trigger modes are the most common modes, compared to external equi pment li ke osci ll oscopes. The 17 different channe l trigger modes enable you to observe nearly any part of the analog signal. This chapte[...]

  • Page 63

    Trigger modes and appendant registers Channel Trigger (c) Spectrum GmbH 63 Triggerlevel All of the channel trigger modes listed above require at least one triggerlevel to be set (except TM_CHXOFF of course). Some li ke the window trigger require even two levels (upper and lo wer level) to be set. Before explaining the different ch annel trigger mod[...]

  • Page 64

    64 MI.20xx Manual Channel Trigger Trigger modes and appendant registers The resulting trigger step wi dth in mV can easily be calculated from the returned value. It is assumed that you know the actually selected input range. To give you an example on how to us e this formular we assume, that the ±1.0 V input range is selected and the board uses 8 [...]

  • Page 65

    Trigger modes and appendant registers Channel Trigger (c) Spectrum GmbH 65 Detailed descripti on of the channel trigger modes Channel trigger on po sitive edge The analog input is continuous ly sampled with the selected sample rate. If the programmed triggerlevel is crossed by the channel’s signal from lower valu es to higher values (ri- sing edg[...]

  • Page 66

    66 MI.20xx Manual Channel Trigger Trigger modes and appendant registers Channel pulsewidth trigger for long positive pulse s The analog input is continuous ly sampled with the selected sample rate. If the programmed triggerlevel is crossed by the channel’s signal from lowe r to higher values (rising edge) the pulsewidth counter is started. If the[...]

  • Page 67

    Trigger modes and appendant registers Channel Trigger (c) Spectrum GmbH 67 Channel pulsewidth trigger for short positive pulses The analog input is continuous ly sampled with the selected sample rate. If the programmed triggerlevel is crossed by the channel’s signal from lowe r to higher values (rising edge) the pulsewidth counter is started. If [...]

  • Page 68

    68 MI.20xx Manual Channel Trigger Trigger modes and appendant registers Channel steepness trigger for flat positive pul ses The analog input is continuous ly sampled with the selected sample rate. If the programmed lower level is crossed by the channel’s signal from lowe r to higher values (rising edge) the pulsewidth counter is started. If the s[...]

  • Page 69

    Trigger modes and appendant registers Channel Trigger (c) Spectrum GmbH 69 Channel steepness trigger for steep po sitive pulses The analog input is continuous ly sampled with the selected sample rate. If the programmed lower level is crossed by the channel’s signal from lowe r to higher values (rising edge) the pulsewidth counter is started. If t[...]

  • Page 70

    70 MI.20xx Manual Channel Trigger Trigger modes and appendant registers Channel window trigger for entering signals The analog input is continuous ly sampled with the selected sample rate. The upper and the lower level define a win- dow. Every time the signal enters the the window from the outside, a triggerevent will be detected. Channel window tr[...]

  • Page 71

    Trigger modes and appendant registers Channel Trigger (c) Spectrum GmbH 71 Channel window trigger for long inner signals The analog input is continuous ly sampled with the selected sample rate. The upper and the lower levels define a win - dow. Every time the signal enters the window from the out- side, the pulsewidth counter is startet. If the si [...]

  • Page 72

    72 MI.20xx Manual Channel Trigger Trigger modes and appendant registers Channel window trigger for short inner signals The analog input is continuous ly sampled with the selected sample rate. The upper and the lower levels define a win - dow. Every time the signal enters the window from the out- side, the pulsewidth counter is startet. If the pulse[...]

  • Page 73

    Option Multi ple Recordin g Recording modes (c) Spectrum GmbH 73 Option Multiple Recording The option Multiple Recording allows the acquisition of data bloc ks with multiple trigger events with out restarting the hardwa re. The on-board memory will be divided into several segments of the same size. Each segment will be filled with data when a trigg[...]

  • Page 74

    74 MI.20xx Manual Trigger modes Option Multiple Recording Resulting start delays The following example shows how to set up the board for Multiple Recording in standard mode. The setup would be simila r in FIFO mode, but the memsize register would not be used. Activated channels Sample rate external TTL trigger internal trigger ex t. TTL trigger wit[...]

  • Page 75

    Option Gated Sampling Recording modes (c) Spectrum GmbH 75 Option Gated Sampling The option Gated Sampling allows the data acquisition controlled by an e xt er n a l g at e s ig n a l . D a t a w i ll o n l y be re co rd ed , i f t he programmed gate condition is true. Recording modes Standard Mode Data will be recorded as long as the gate signal f[...]

  • Page 76

    76 MI.20xx Manual Trigger modes Option Gated Sampling Due to the structure of the on-board memory there is another delay at the end of the gate interval. Internally a gate-end signal can only be recognized at an eight samples alignment. So depending on what time your external gate signal will leave the programmed gate condition it might hap- pen th[...]

  • Page 77

    Option Gated Sampling Example program (c) Spectrum GmbH 77 Channel trigger Example program The following example shows how to set up the board for Gated Samp ling in standard mode. The setup would be similar in FI FO mod e, but the memsize register would not be used. Mode Gate start will be detected on Gate end will be detected on TM_CHXPOS signal [...]

  • Page 78

    78 MI.20xx Manual General information Option Timestamp Option Timestamp General information The timestamp function is used to record trigger events relative to the beginn ing of the measurement, relative to a fixed time- zero point or synchronized to an external radio clock. Th is is done by a wide resetable counter that is incremented with every s[...]

  • Page 79

    Option Timestamp Timestamp Status (c) Spectrum GmbH 79 The HIGH part counts the seconds that have elapsed since th e la st counter reset with the reset command TS_RESET. The LOW part i s reset to zero on every seconds signal and is clocked with the actual sample rate. The edge of the e xternal secondssignal must be set sep erate ly as described bel[...]

  • Page 80

    80 MI.20xx Manual Reading out timestamp data Option Timestamp Reading out all the timestamps with SpcGetData When using the function SpcGetData the data stored in the timest amp FIFO will be read out in one bloc k by the driver. The usage of the function SpcGetData is described in the re lating section earlier in this manual. The following list doe[...]

  • Page 81

    Option Timestamp Example programs (c) Spectrum GmbH 81 Example programs Standard acqui sition mod e Acquisition with Multip le Recording // ----- Allocate memory for the timestam p data buffer ----- plTimeStamps = (ptr32) malloc (MAX_TIMEST AMPS * 8); // ----- Reset the board and flush the FI FO ----- SpcSetParam (hDrv, SPC_COMMAND, SP C_RESET); //[...]

  • Page 82

    82 MI.20xx Manual Digital I/Os Option Extra I/O Option Extra I/O Digital I/Os With this simple-to-use enhancement it is possible to control a wide range of external instrume nts or other equipment. Therefor e you have several digital I/Os and the 4 analog outp uts available. All extra I/O lines are comp letely independent from the board’s functi [...]

  • Page 83

    Option Extra I/O Analog Outputs (c) Spectrum GmbH 83 Analog Outputs In addition to the digital I/Os there are fo ur analog outputs available. These output s are directly programmed with the voltage values in mV . As the analog outputs are driven by a 12 bit DAC, the output vo ltage can be set in a step size of 5 mV. The table below shows th e regis[...]

  • Page 84

    84 MI.20xx Manual The different synchronization options Synchronization (Option) Synchronization (Option) This option allows the connection of multip le boards to generate a multi-channel syst em. It is possible to synchronize multiple Spectrum boards of the same type as well as different board types. Therefore th e synchronized boards must be li n[...]

  • Page 85

    Synchronization (Option) The setup order for the different synchronization options (c) Spectrum GmbH 85 When the boards are synchronized by the option starhub there will be no delay between the connected boards. This is achie- ved as all boards, including the one the starhub module is mounted on, are connected to th e starhub with cables of the sam[...]

  • Page 86

    86 MI.20xx Manual The setup order for the different synchr onization options Synchronization (Option) Example for data writing (4) Define the board(s) for trigger master At least one board must be set as the trigger master to get sync hronization running. Every one of the synchronized boards can b e programmed for beeing the trigger master device. [...]

  • Page 87

    Synchronization (Option) The setup order for the different synchronization options (c) Spectrum GmbH 87 Even if a board is not using the synchr onization tri gger, it must have been set as a triggerslave before even if you exclude the board with the SPC_NOTRIGSYNC register. After you have excluded one or more of the installed boards from the synchr[...]

  • Page 88

    88 MI.20xx Manual The setup order for the different synchr onization options Synchronization (Option) (10) Start all of the trigger master boards After having armed the synchronized boar ds, you must start all of the boards, that are defined as trigger masters. For details on how to start the board in the different modes in standard mode (non FIFO)[...]

  • Page 89

    Synchronization (Option) The setup order for the different synchronization options (c) Spectrum GmbH 89 Setup synchronizati on for use with FIFO mode and equa lly clocked boa rds Most of the steps are similar to the setup routine for standard synchronization mentioned before. In this passage only the diff erences between the two modes are shown. Pl[...]

  • Page 90

    90 MI.20xx Manual The setup order for the different synchr onization options Synchronization (Option) (9) Start all of the trigger slave boards After having armed the synchronized boards, you must start all of the boards, that are defined as trigger slaves first. This is done with the FIFOSTART command. Remember that the FIFO mode is allw ays inter[...]

  • Page 91

    Synchronization (Option) Additions for synchronizing different boards (c) Spectrum GmbH 91 Additions for synchron izing different boards General information Spectrum boards with different speed gr ades, different number of channels or even just dif feren t clock settings for the same ty pes of boards can be synchronized as well. To get the boar ds [...]

  • Page 92

    92 MI.20xx Manual Additions for synchronizing differ ent boards Synchronization (Option) Setting up the clock divider The clock divider can easily be set by the following register. Plea se keep in mind that the divider must be set for every s ynch ronized board to have synchronization working correctly. For more details on the board’s clocking mo[...]

  • Page 93

    Synchronization (Option) Additions for synchronizing different boards (c) Spectrum GmbH 93 Additions for equal boar ds with different s ample rates In addition to the possibility of synchroniz ing different types of boards to one synchron ous sample rate it can be also useful in some cases to synchronize boards of the same type, with one working at[...]

  • Page 94

    94 MI.20xx Manual Error Codes Appendix Appendix Error Codes The following error codes could occur when a driver function has been called. Please check carefully the allow ed setup for the register and change the settings to run the program. error name value (hex) value (dec.) error description ERR_OK 0h 0 E xecution OK, no error . ERR_INIT 1h 1 The[...]

  • Page 95

    Pin assignment of the multipin conne ctor (c) Spectrum GmbH 95 Pin assignment of the multipin connector The 40 lead multipin connector is the main connecto r for all of Spectrum’s digital boards and is addi- tionally used for different options, l ike “Extra I/O“ or the additional digital inpu ts (on analog acquisition boards only) or addition[...]

  • Page 96

    96 MI.20xx Manual Pin assignment of the internal multipin connector Pin assignment of the in ternal multipin connector The 26 lead internal connector is used for the option “Extra I/O“ (-XIO) without the external connector described before. The connector mentioned here is m ounted on the bottom side of the Extra I/O modu- le. Extra I/O with int[...]