Spectrum PCI.412 Hardware Manual Download Page 25

PCI.412 manual

31.03.2004

Page 25 of 26

Example of Driver use

This example is written for a C or C++ compiler. It reads out the information of the PCI.412, sets the parameters and starts the board once.

This file is found in the example directory on the driver disk.

3&,'266RIWZDUHGULYHUH[DPSOHF6SHFWUXP*PE+

7KLVH[DPSOHZLOORQO\ZRUNFRUUHFWLIMXVWRQH3&,LVLQVWDOOHGLQ

WKHV\VWHPDQGQRRWKHU6SHFWUXPERDUGV

LQFOXGHVWGLRK!

LQFOXGHVWULQJK!

LQFOXGH'//7<3+

LQFOXGH63(&7580+

LQFOXGH(55256+

LQFOXGH5(*6+

LQW'DWD>O@'DWD>O@'DWD>O@'DWD>O@

LQWPDLQ

^LQW&RXQW3&,9HUVLRQ

LQW7\S9HUVLRQ'DWH6WDWXV,5&RXQWL5DQJH5DQJH5DQJH5DQJH

LQW(UURU&RGH(UURU5HJ(UURU9DOXH

,QLWLDOLVDWLRQRI3&,%XV

LI6SF,QLW3&,%RDUGV &RXQW 3&,9HUVLRQ (55B2.UHWXUQ

LI&RXQW  UHWXUQ

7HVWIRU3&,VWERDUGLVERDUGQXPEHU

6SF*HW3DUDP63&B3&,7<3 7\S

LI7\S 7<3B3&,UHWXUQ

*HWVRPH3&,3DUDPHWHUVIURPGULYHUDQGSULQWWKHP

6SF*HW3DUDP63&B3&,9(56,21 9HUVLRQ

6SF*HW3DUDP63&B3&,'$7( 'DWH

SULQWI?Q?Q3&,9[[SURGXFHGGG?Q

LQW9HUVLRQ!! [))LQW9HUVLRQ [))

LQW'DWH [))LQW'DWH!!

6HW3DUDPHWHUVIRU5HFRUGLQJ

6SF6HW3DUDP63&B6$03/(5$7(O6DPS]

6SF6HW3DUDP63&B0(06,=(O0HPVL]HN6DPSOH

6SF6HW3DUDP63&B326775,**(5O3RVWWULJJHU6DPSOH

6SF6HW3DUDP63&B(;7(51$/&/2&.QRH[WHUQDOFORFN

6SF6HW3DUDP63&B75,**(5287QRWULJJHURXWSXW

6SF6HW3DUDP63&B(;7(51287QRFORFNRXWSXW

6SF6HW3DUDP63&B3$77(51(1$%/(QRSDWWHUQLQSXW

6SF6HW3DUDP63&B$03OFK9LQSXWUDQJH

6SF6HW3DUDP63&B$03OFK9LQSXWUDQJH

6SF6HW3DUDP63&B$03OFK9LQSXWUDQJH

6SF6HW3DUDP63&B$03OFK9LQSXWUDQJH

6SF6HW3DUDP63&B75,**(502'(70B62)7:$5(6RIWZDUHWULJJHU

6SF6HW3DUDP63&B&200$1'63&B67$576WDUWWKHERDUG

:DLWIRU6WDWXVUHDG\

GR

^

6SF*HW3DUDP63&B67$786 6WDWXV

`

ZKLOH6WDWXV 63&B5($'<

6SF*HW'DWDOGDWDSWU 'DWD>@5HDGGDWD

6SF*HW'DWDOGDWDSWU 'DWD>@

6SF*HW'DWDOGDWDSWU 'DWD>@

6SF*HW'DWDOGDWDSWU 'DWD>@

SULQWI?Q3&,UHDG\'DWDWUDQVIHUUHG?Q

UHWXUQ

`

Summary of Contents for PCI.412

Page 1: ...RENSFELDER WEG 13 17 x 22927 GROSSHANSDORF x GERMANY TEL 49 0 4102 6956 0 x FAX 49 0 4102 6956 66 x EMAIL info spec de x INTERNET http www spec de 31 03 2004 PCI 412 10 40 MHz 4 channel 12 bit transient recorder for PCI bus Hardware Manual Driver Manual ...

Page 2: ...marks of Microsoft Corporation LabVIEW is a trademark of National Instruments Corporation MATLAB is a registered trademark of The MathWorks Inc Agilent VEE is a trademark of Agilent FlexPro is a registered trademark of Weisang Co DASYLab is a registered trademark of DATALOG GmbH Spectrum reserves the right to make improvements and or changes to the products and or programs at any time in order to ...

Page 3: ...ck diagram PCI 412 13 Technical data 13 Placement PCI 412 14 Connectors 14 AC DC jumper 15 50 Ohm jumper 15 Digital inputs PCI 412 15 Sync Bus 15 Software Description 16 General Information 16 Header files on CD 16 DLLTYP H 16 SPECTRUM H 16 REGS H 16 ERRORS H 16 Driver functions 16 int16 SpcInitPCIBoards int16 count int16 PCIVersion 17 int16 SpcInitBoard int16 nr int16 typ 17 int16 SpcSetParam int...

Page 4: ...Option 20 Memory register 21 Posttrigger register 21 Features register 21 Input range register 21 Triggermode register 22 Triggerlevel register 23 Multiple Recording Option 23 Samplerate register 24 Data format 24 Example of Driver use 25 Transfer speed 26 ...

Page 5: ...ier kann ebenfalls die neueste Treiberverison mit den letzten Fehlerbereinigungen gefunden werden Preface This manual provides detailed information on the hardware features of the PCI 412 from Spectrum Systementwicklung This information includes specifications block diagram connector description In addition this guide takes you through the process of installing your board and also describes the in...

Page 6: ... Treiber für Linux DOS und Windows 9x ME NT 2000 XP Für die einfache Program mierung sind Beispiele in C C Delphi und Visual Basic enthalten Darüber hinaus steht zur komfortablen Steuerung die Signalverarbeitungssoftware SBench 5 2 kostenlos zur Ver fügung Außerdem sind Treiber für LabVIEW DASYLab MATLAB und VEE erhältlich Software Drivers for Linux DOS and Windows 9x ME NT 2000 XP as well as prog...

Page 7: ... additional cooling fans it is the best decision to put the board in a slot not adjacent to any other board If you have a system with additional cooling fans place the PCI board in front of a cooling fan 4 Install the board in this slot Make sure that the PCI connector is right struck into the slot 5 Use a screw to fix the bracket to the PC 6 If your board has full PCI length a retainer is deliver...

Page 8: ...nfache Weise in das Programm einzubinden Die Library Datei arbeitet nicht mit Borland Compilern zusammen Die beiden DLL s unterscheiden sich nur im Aufruf der Funktionen Die Datei SPECTRUM DLL exportiert die Funktionen als _cdecl für C C Delphi die Datei SPCSTD95 DLL als _stdcall für Visual Basic Je nach benutztem Compiler kann eine der beiden DLL s benutzt werden Win 98 ME 2000 XP WDM When the op...

Page 9: ...figuriert Bitte überprüfen Sie ob mit dem Programm DRVCONFG EXE ob die Standard Karte PCI Board eingetragen ist Windows NT 1 Login as ADMINISTRATOR or with another account having the right to install drivers and to change the registry 2 Start the setup program on the driver CD The installation program is found in the directory Install WinNTDrv 3 The installation routine will install the kernel mod...

Page 10: ...Sie allen Personen Schreibrechte für das Device erteilen chmod a w dev spc0 Ende Die Karte kann jetzt über das angelegte Device angesprochen werden Das genaue Vorgehen kann aus den Beispielen entnommen werden Nach einem Neustart von Linux ist es nur nötig das Treiber Modul zu laden Das Device muß nur geändert werden falls die Major Number nicht mehr stimmt Login Login as root or login as a user wh...

Page 11: ...D The program supports all actual acquisition generator and digital I O boards from Spectrum Depending on the used board and the software setup one could use SBench as a digital storage oscilloscope a spectrum analyser a logic analyser or simply as a data recording front end Different export and import formats allow the use of SBench together with a variety of other programs An install version of ...

Page 12: ... RAM No triggerevents are processed until the programmed memory is filled one time completely with data Afterwards the trigger sequencer will be enabled If Software trigger is used a triggerevent is detected immediately Using the TTL trigger will cause a triggerevent if the external TTL input will go from low to high rising edge or from high to low falling edge When the triggermode is set to chann...

Page 13: ... mm ENOB fs 10 MHz fck 40 MHz 10 8 bit typ ADC Connector 3 mm BNC female Aperture jitter 1 2 ps rms ADC Input impedance 50 Ohm or 1 MOhm 15 pF Multi Trigger to 1st sample delay 0 to 4 samples fix Overvoltage protection r20 V Multi Recovery time d 3 samples Warm up time 10 minutes Trigger output delay 6 to 14 samples fix Operating temperatur 0qC 50qC Trigger accuracy 1 sample Storage temperatur 10q...

Page 14: ...S XWV FK LJ LWD O QS XWV FK Connectors The PCI 412 has six 3 mm BNC connectors Connector 0 analogue channel 0 Connector 1 analogue channel 1 Connector 2 analogue channel 2 Connector 3 analogue channel 3 Connector 4 triggermode TTLPOS or TTLNEG external trigger input triggermode z TTLPOS and TTLNeg trigger output Connector 5 EXTERNALCLOCK 1 clock input EXTERNALCLOCK 0 clock output ...

Page 15: ... J15 set ch2 50 Ohm J22 set ch3 50 Ohm J1 clear ch0 1 MOhm J8 clear ch1 1 MOhm J15 clear ch2 1 MOhm J22 clear ch3 1 MOhm Digital inputs PCI 412 J3 ch0 bit 0 J17 ch2 bit 0 J4 ch0 bit 1 J18 ch2 bit 1 J5 ch0 bit 2 J19 ch2 bit 2 J6 ch0 bit 3 J20 ch2 bit 3 J10 ch1 bit 0 J24 ch3 bit 0 J11 ch1 bit 1 J25 ch3 bit 1 J12 ch1 bit 2 J26 ch3 bit 2 J13 ch1 bit 3 J27 ch3 bit 3 Sync Bus Carries the signals for syn...

Page 16: ...lle Register und Kommandos die im Spectrum Treiber für die verschiedenen Karten benutzt werden Die Register die von einer Karte benutzt werden sind weiter unten im kartenspezifischen Teil beschrieben ERRORS H Listet alle möglichen Errorcodes der Funktionen auf Header files on CD DLLTYP H Includes the platform specific definitions for data types and function declarations All data types are based on...

Page 17: ...it integer register to be changed value 32 bit integer value for the register return 16 bit integer error code of function like listed below Sets a register to a defined value or executes a command The board must be initialised before When using ISA boards all installation parameters must be set before address installed memory The allowed registers for the driver are listed in the board specific p...

Page 18: ... board ERR_SEQUENCE 103 259 Channel sequence is not allowed ERR_READABORT 104 260 Data read is not allowed after aborting the data acquisition ERR_NOACCESS 105 261 Access to this register denied No access for user allowed ERR_POWERDOWN 106 262 Not allowed if powerdown mode is activated ERR_CHANNEL 110 272 The channel number may not be accessed on the board Either it is not a valid channel number o...

Page 19: ...e program PCITEST EXE on the driver disk will give the same information s register name reg no r w SPC_PCITYP 2000 r type of board as listed above SPC_PCIVERSION 2010 r board revision high part in bit 8 15 Low part in bit 0 7 SPC_PCIDATE 2020 r production date month in bit 0 7 year in bit 16 31 SPC_PCISERIALNO 2030 r serial number of the PCI 412 SPC_PCISAMPLERATE 2100 r max samplerate as 32 bit in...

Page 20: ...r from trigger master board Synchronisation Option This option allows it to connect several boards from Spectrum to generate a multi channel system It is possible to connect several PCI 412 One board is the clock master and generates the clock for the other slave boards The clock master is defined in hardware and has the synchronisation master bit set in the PCI features register see above Only on...

Page 21: ...et data will be expanded in hardware to 16 bit integer At the triggermode TM_GATELOW HIGH is the first sample after the gate occurred marked on each channel with bit 15 set to 1 The other samples are readout with bit 15 set to low Input range register register name reg no r w SPC_AMP0 30010 w Input range channel 0 SPC_AMP1 30110 w Input range channel 1 SPC_AMP2 30210 w Input range channel 2 SPC_AM...

Page 22: ... Channel 1 is disabled for triggering TM_CH2POS 10200 Wait for rising edge on channel 2 at triggerlevel TM_CH2NEG 10210 Wait for falling edge on channel 2 at triggerlevel TM_CH2OFF 10220 Channel 2 is disabled for triggering TM_CH3POS 10300 Wait for rising edge on channel 3 at triggerlevel TM_CH3NEG 10310 Wait for falling edge on channel 3 at triggerlevel TM_CH3OFF 10320 Channel 3 is disabled for t...

Page 23: ... mV 1 range 32 1 15 6 mV 31 3 mV 62 5 mV 0 0 mV 0 mV 0 mV 1 range 32 1 15 6 mV 31 3 mV 62 5 mV 2 range 32 2 31 3 mV 62 5 mV 125 mV 30 range 32 30 469 mV 938 mV 1 88 V 31 range 32 31 484 mV 969 mV 1 94 V Allowed values are in the range from 31 to 31 Multiple Recording Option The option Multiple Recording allows the recording of several triggerevents without restarting the hardware The memory of the...

Page 24: ...read out in 2th complement Normally the upper 4 bit bit 12 bit 15 will be signed expanded in hardware With this feature it is possible to use the read data directly as signed 16 bit integer values If the register SPC_PATTERNENABLE is set the digital inputs will be read out in the upper four bits of the four channels In this case it is necessary to divide the data in the analogue and the digital ch...

Page 25: ... 7 S 7 3B3 UHWXUQ HW VRPH 3 3DUDPHWHUV IURP GULYHU DQG SULQW WKHP 6SF HW3DUDP 63 B3 9 56 21 9HUVLRQ 6SF HW3DUDP 63 B3 7 DWH SULQWI Q Q3 9 SURGXFHG G G Q LQW 9HUVLRQ LQW 9HUVLRQ LQW DWH LQW DWH 6HW 3DUDPHWHUV IRU 5HFRUGLQJ 6SF6HW3DUDP 63 B6 03 5 7 O 6DPSOHUDWH 0 6SF6HW3DUDP 63 B0 06 O 0HPVL H N6DPSOH 6SF6HW3DUDP 63 B326775 5 O 3RVWWULJJHU 6DPSOH 6SF6HW3DUDP 63 B 7 51 2 QR H WHUQDO FORFN 6SF6HW3DUDP...

Page 26: ...0 V 0 V 4k 32k 0 V 0 V 8k 64k 0 V 0 V 16k 128k 0 V 0 V 32k 256k 0 V 0 V 64k 512k 0 V Win 95 Win NT Memsize Bytes Store Add Transfer Store Add Transfer 256 2k 0 V 0 V 512 4k 0 V 0 V 1k 8k 0 V 0 V 2k 16k 0 V 0 V 4k 32k 0 V 0 V 8k 64k 0 V 0 V 16k 128k 0 V 0 V 32k 256k 0 V 0 V 64k 512k 0 V 0 V Store Set all Parameters to the board Loop Start Start the board Wait for Ready Read Data Loop End Add Set al...

Reviews: