background image

PCI-208 / CPCI.208 manual

31.03.2004

Page 21 of 30

int16 SpcGetData (int16 nr, int16 ch, int32 start, int32 len, dataptr data)

nr

16 bit integer

number of the board as defined by SpcInit...

ch

16 bit integer

channel to be read

start

32 bit integer

startvalue to be read

len

32 bit integer

number of values to be read

data

huge ptr to data

data space for read values

return

16 bit integer

error code of function like listed below

Reads data from the board from a specific channel. The board must be initialised before. When using ISA boards, all installation

parameters must be set before (address, installed memory, ...). The Start and Len parameter are implemented on all PCI boards. On

ISA boards the whole data will be read in one turn. The read out data is in the two’s complement format and could be directly used for

data processing as standard integer values.

Error Codes

error name

value

(hex)

value

(dec.)

description

ERR_OK

0

0

Execution OK, no error.

ERR_INIT

1

1

The board number is not in the range of 0 to 15. When initialisation is executed: the board number is

yet initialised, the old definition will be used.

ERR_NR

2

2

The board is not initialised yet. Use the function 

SpcInitBoard

or 

SpcInitPCIBoards 

first.-

ERR_TYP

3

3

Initialisation only: The type of board is unknown.

ERR_FNCNOTSUPPORTED

4

4

This function is not supported by the hardware version.

ERR_LASTERR

10

16

Old Error waiting to be read.

ERR_ABORT

20

32

Abort of wait function

ERR_BOARDLOCKED

30

48

Access to the driver already locked by another program. Stop the other program before starting this one.

ERR_REG

100

256

The register is not valid for this type of  board.

ERR_VALUE

101

257

The value for this register is not in a valid range, the allowed values and ranges are listed in the board

specific documentation.

ERR_FEATURE

102

258

Feature is not installed on this 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 or the

channel is not accessible due to the actual setup (e.g. Only channel 0 is accessible in interlace mode)

ERR_RUNNING

120

288

The board is still running, this function is not available now or this register is not accessible now.

ERR_ADJUST

130

304

Automatic adjustion has reported an error. Please check the boards inputs.

ERR_NOPCI

200

512

No PCI BIOS is found on the system.

ERR_PCIVERSION

201

513

The PCI bus has the wrong version. SPECTRUM PCI boards require PCI revision 2.1 or higher.

ERR_PCINOBOARDS

202

514

No SPECTRUM PCI boards found.

ERR_PCICHECKSUM

203

515

The checksum of the board information has failed.

ERR_DMALOCKED

204

516

DMA buffer not available now.

ERR_MEMALLOC

205

517

Internal memory allocation failed.

ERR_FIFOBUFOVERRUN

300

768

Driver buffer overrun in FIFO mode.

ERR_FIFOHWOVERRUN

301

769

Hardware buffer overrun in FIFO mode.

ERR_FIFOFINISHED

302

770

FIFO transfer has been finished, programmed number of buffers has been transferred.

ERR_FIFOSETUP

309

777

FIFO setup not possible, transfer rate to high (max 250 MB/s)

ERR_TIMESTAMP_SYNC

310

784

Synchronisation to external reference clock failed.

Valid Board Types

board

type(hex)

type (dec)

board

type(hex)

type (dec)

board

type(hex)

type (dec)

PAD52

600

1536

PAD1616a

500

1280

PCI.212

300

384

PAD82

200

512

PAD1616b

510

1296

PCI.208

1000

4096

PAD82a

210

528

PAD164/2

900

2304

PCI.412

1100

4352

PAD82b

220

544

PAD164/5

910

2320

PCI.DIO32

1200

4608

PAD242

700

1792

PADCO-06

1400

5120

PCI.248

1300

4864

PAD1232-10

400

1024

PCK400

800

2048

PCI.258

1600

5632

PAD1232-30

410

1040

DAP116

100

256

MI.3010

3010

12304

PAD1232-40

420

1056

TRS582

1500

5376

...

...

...

Summary of Contents for PCI.208

Page 1: ... x AHRENSFELDER 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 208 100 200 MHz 8 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: ...nchronisation 14 Block diagram PCI 208 15 Block diagram CPCI 208 16 Technical data 16 Placement PCI 208 17 Placement CPCI 208 17 Connectors 18 AC DC jumper 18 Digital inputs PCI 208 18 Digital inputs CPCI 208 18 Sync Bus 18 Software Description 19 General Information 19 Header files on CD 19 DLLTYP H 19 SPECTRUM H 19 REGS H 19 ERRORS H 19 Driver functions 19 int16 SpcInitPCIBoards int16 count int1...

Page 4: ...on Option 24 Memory register 24 Posttrigger register 24 Features register 25 Additional feature register of CPCI 208 25 Triggermode register 25 Triggerlevel register 25 Samplerate register 26 Double Mem Option 26 Multiple Recording Option 26 Gated Sampling option 27 Input range register 28 Data Read 28 Example of Driver use 29 Transfer speed 30 ...

Page 5: ...en Hier kann ebenfalls die neueste Treiberverison mit den letzten Fehlerbereinigungen gefunden werden Preface This manual provides detailed information on the hardware features of the PCI 208 and the CPCI 208 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 ...

Page 6: ...iefert werden 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 DASY Lab MATLAB und VEE erhältlich Software Drivers for Linux DOS and Windows 9x ME NT 2000 XP a...

Page 7: ...h no 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 del...

Page 8: ...f einfache 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 th...

Page 9: ...t konfiguriert 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 kerne...

Page 10: ...nnen 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 us...

Page 11: ... on CD 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 versio...

Page 12: ...8 CPCI 208 has been started it samples the input signals and stores the converted data to the memory The memory operates as a circular buffer so data are written continuously to the RAM If pretrigger is programmed no triggerevents are processed until the programmed memory is filled one time completely with data Afterwards the trigger sequencer will be enabled This functionality may be disabled wit...

Page 13: ...ses mit Daten gefüllt Im Multiple Recording Modus ist kein Pretrigger möglich Option Multiple Recording The option Multiple Recording allows the recording replay of several trigger events without restarting the hardware The memory of the board will be divided into several segments of the same size Each segment will be filled with data when a trigger event occurs Pretrigger is not available when us...

Page 14: ...m gleichen Abtasttakt Option Synchronisation This option allows it to connect several boards from Spectrum to generate a multi channel system It is also possible to build up synchronously mixed mode systems to record analogue channels and digital channels together The boards may be connected in one type of board with each other Also it is possible to connect Spectrum boards of different types that...

Page 15: ...PCI 208 CPCI 208 manual 31 03 2004 Page 15 of 30 Block diagram PCI 208 ...

Page 16: ...d 48 dB d 48 dB d 48 dB Aperture jitter 10 ps typ ADC Input impedance 50 Ohm or 1 MOhm 25 pF Dimension 312 mm x 107 mm TTL Input impedance 110 Ohm 15 pF Connector 9 mm BNC female Multi Gate Trig to 1st sample delay 8 to 42 samples fix Overvoltage protection r20 V Multi Gate recovery d 100 MHz 20 samples Warm up time 10 minutes Trigger output delay 6 samples Operating temperature 0qC 50qC Trigger a...

Page 17: ...CI 208 CPCI 208 manual 31 03 2004 Page 17 of 30 Placement PCI 208 FKD QQHO FKD QQHO LJ LWD O QS XWV FKD QQHO LJ LWD O QS XWV FKD QQHO 6 QF XV Placement CPCI 208 FKD QQHO LJ LWD O QS XWV 6 QF XV FKD QQHO ...

Page 18: ...annel 1 AC coupled Digital inputs PCI 208 Digital Inputs channel 0 Digital Inputs channel 1 Pin 1 D7 marked D7 Pin 1 D7 marked D15 Pin 3 D6 Pin 3 D6 Pin 5 D5 Pin 5 D5 Pin 7 D4 Pin 7 D4 Pin 9 D3 Pin 9 D3 Pin 11 D2 Pin 11 D2 Pin 13 D1 Pin 13 D1 Pin 15 D0 marked D0 Pin 15 D0 marked D8 Pin 2 4 6 8 10 12 14 16 GND Pin 2 4 6 8 10 12 14 16 GND Digital inputs CPCI 208 Pin A1 Ch0 D7 Pin B1 Ch1 D7 Pin A3 Ch...

Page 19: ...rt alle 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 base...

Page 20: ...32 bit 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 specif...

Page 21: ...this 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 numb...

Page 22: ...function SpcInitPCIBoards read out installation parameters for all found PCI boards like version installed memory set user specific parameters and start board loop If you are using ISA and PCI boards in one system at the same time use the function SpcInitPCIBoards first and initialise the ISA boards after this The function SpcInitPCIBoards uses the first board numbers and will overwrite other defi...

Page 23: ...r board is clock master for synchronisat ion Bit 6 option synchronisation slave board is clock slave for synchronisation Bit 5 not used Bit 4 not used Bit 3 not used Bit 2 not used Bit 1 not used Bit 0 option multiple recording installed Error registers If one action caused an error in the driver this error and the register and value where it occurs will be saved The driver is then locked until th...

Page 24: ...er bit set in the PCI features register see above Only one board may be the clock master At runtime any of the synchronised boards may be defined as a trigger master and generates trigger information for the other boards If the boards are synchronised they must be programmed in the following steps 1 Set all parameters for all boards except the sync information 2 Set the sync information for the cl...

Page 25: ...of an interrupt at the end of recording The used interrupt line may be read out with the register SPC_PCIINTERRUPT Additional feature register of CPCI 208 Register name reg no r w SPC_CLOCK50OHM 20120 r w set the clock input to 50 input resistance SPC_TRIGGER50OHM 40110 r w set the trigger input to 50 input resistance Triggermode register Register name reg no r w SPC_TRIGGERMODE 40000 r w triggerm...

Page 26: ...1 enable SPC_MULTIMEMVALID 220200 r read out the number of valid trigger samples after multiple recording was stopped by the user by writing SPC_STOP to the command register The register memsize holds the total amount of memory to be recorded The register posttrigger will hold the size of one segment Recording is started with a fixed delay after the triggerevent is found There is no pretrigger pos...

Page 27: ...hen the board is not recording Samplerate Synchronisation Triggermode Delay trigger to first recorded sample d 100 MHz No Gate LOW or Gate HIGH 8 Samples d 100 MHz Yes Gate LOW or Gate HIGH 13 Samples 200 MHz No Gate LOW or Gate HIGH 16 Samples 200 MHz Yes Gate LOW or Gate HIGH 26 Samples Recording will pause at the end of a gate intervall rising edge on trigger mode TM_GATELOW or falling edge on ...

Page 28: ... no r w SPC_READIRCOUNT 3000 r number of calibrated input ranges SPC_READRANGECH0_0 3200 r range in mV of calibrated input range 0 The values of the other entries may be read out from the following registers 3201 for range1 3202 for range2 SPC_READRANGECH1_0 3300 r range in mV of calibrated input range 0 The values of the other entries may be read out from the following registers 3301 for range1 3...

Page 29: ... SULQW WKHP 6SF HW3DUDP 63 B3 9 56 21 9HUVLRQ 6SF HW3DUDP 63 B3 7 DWH SULQWI 3 9 SURGXFHG G G Q LQW 9HUVLRQ LQW 9HUVLRQ LQW DWH LQW DWH 6HW 3DUDPHWHUV IRU 5HFRUGLQJ 6SF6HW3DUDP 63 B6 03 5 7 O VDPSOHUDWH 0 6SF6HW3DUDP 63 B0 06 O PHPVL H N6DPSOH 6SF6HW3DUDP 63 B326775 5 O SRVWWULJJHU 6DPSOH 6SF6HW3DUDP 63 B 7 51 2 QR H WHUQDO FORFN 6SF6HW3DUDP 63 B 7 51287 QR FORFN RXWSXW 6SF6HW3DUDP 63 B75 5287 QR ...

Page 30: ...512k 1M 21 Hz 7 Hz 33 0 MB s 1M 2M 11 Hz 4 Hz 32 0 MB s Win 95 Win NT Memsize Bytes Store Add Transfer Store Add Transfer 256 512 9500 Hz 9500 Hz 8 0 MB s 3600 Hz 3600 Hz 3 0 MB s 512 1k 8800 Hz 8800 Hz 12 5 MB s 3400 Hz 3400 Hz 5 8 MB s 1k 2k 6750 Hz 6750 Hz 18 0 MB s 3150 Hz 3150 Hz 10 0 MB s 2k 4k 4100 Hz 4100 Hz 22 5 MB s 2400 Hz 2400 Hz 15 5 MB s 4k 8k 2300 Hz 2300 Hz 31 0 MB s 1650 Hz 1630 H...

Reviews: