Spectrum PCI.412 Скачать руководство пользователя страница 8

PCI.412 manual

31.03.2004

Page 8 of 26

DOS

OBJ files (DOS driver)

OBJ files (DOS driver)

OBJ files (DOS driver)

Linux

Linux Kernel Module

Linux Kernel Module

Linux Kernel Module

DOS

Der Treiber für DOS besteht aus einem Satz Objektdateien zum

Linken in ein DOS Programm. Die Treiber Dateien können auf

der CD im Verzeichnis \DRIVER\DOS auf der Diskette gefunden

werden. Beispiele zur Nutzung von Borland C++ 3.1 sind

ebenfalls vorhanden. Zur Benutzung der Treiber müssen nur die

Objekt Dateien *.OBJ und die Header Dateien *.H ins

Arbeitsverzeichnis kopiert werden.

Wenn die Beispielprogramme bei der Arbeit mit DOS nicht

laufen, so kann es hier zu einem Problem mit den im System

installierten Software Treibern gekommen sein. Starten Sie das

System erneut ohne irgendwelche installierten Treiber. Wenn das

Programm so läuft, fügen Sie Schritt für Schritt Ihre Treiber

wieder in das System ein, um den problematischen Treiber

herauszufinden.

Auf einigen Motherboards kann es zu Problemen mit älteren

Versionen der Datei EMM386.EXE kommen. Die Version 6.22

läuft hier korrekt. Es kann daher nötig sein, diese Datei gegen

eine neuere Version auszutauschen.

DOS

The driver consists of a set of object files ready to link to a DOS

program. The driver files are found on CD in the directory

\DRIVER\DOS on the driver disk. Examples for the use with

Borland C++ 3.1 are included. To use the driver files, just copy

the object *.OBJ and header *.H files to your working directory.

If the example files are not working when using DOS operating

system, there may be problems with the installed software

drivers. Start the system once again without any software drivers

installed. After this install the drivers step by step to find out the

problematic software driver. On some motherboards, there may

be problems when using older versions of EMM386.EXE. The

version 6.22 works correctly. It may be necessary to update this

driver to a higher version.

Win 98/ME/2000/XP (WDM)

Wenn das Betriebssystem Windows 98, Windows ME,

Windows 2000 oder Windows XP installiert ist, wird die PCI

Karte nach dem nächsten Start automatisch erkannt. Das System

bietet die direkte Installation eines Treibers für die Karte an.

Wählen Sie hier als Installationsquelle die mitgelieferte CD. Die

Treiberdateien befinden sich im Verzeichnis

\Driver\Win98_2k_XP. Die Treiber stehen sofort nach der

Installation ohne Neustart des Systems zur Verfügung.

Die Treiber bestehen aus einer 32 Bit DLL, die alle Funktionen

des Treibers enthält, und einem WDM-Kernel-Treiber (SYS). Die

DLL kann mit allen Systemen benutzt werden, die eine

Schnittstelle zu 32 Bit Windows DLLs anbieten. Beispiele für

Microsoft Visual C++, Borland Delphi und Microsoft Visual Basic

sind ebenfalls enthalten.

Falls Sie Visual C++ benutzen, so ist es möglich, die Library

Datei SPECTRUM.LIB mit in ein Projekt zu integrieren, um die

Funktionen des Treibers auf 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 the operating system Windows 98, Windows ME,

Windows 2000 or Windows XP is installed, the PCI board will

be automatically recognised after the rebooting. The system will

ask for a driver to be installed. Select the install directory from

the Spectrum driver CD. The driver files are placed in the

directory \Driver\Win98_2k_XP. The driver is ready to use

directly after installing, no reboot is necessary.

The driver consists of a 32 bit windows DLL which includes all

functions of the driver and a WDM kernel driver (SYS). The DLL

can be used with all systems which accept 32 bit windows DLL’s.

Examples for Microsoft Visual C++ 4.x, Borland Delphi and

Microsoft Visual Basic are included.

If you are using Microsoft Visual C++, you may use the delivered

library file SPECTRUM.LIB to access the driver functions easily.

The library file will not work with Borland compilers.

The only difference between the both DLL’s is the calling

convention. The file SPECTRUM.DLL uses _cdecl definition (for C,

C++, Delphi), the file SPCSTD95.DLL uses _stdcall definition (for

Visual Basic). Depending on the used programming language,

one of the two DLL’s may be used.

Windows 95 (VXD)

Die Treiber für Windows 95 bestehen aus einer 32 Bit DLL, die

alle Funktionen des Treibers enthält, und einem Virtual Device

Driver (VXD). Die DLL kann mit allen Systemen benutzt werden,

die eine Schnittstelle zu 32 Bit Windows DLLs anbieten. Beispiele

für Microsoft Visual C++, für Borland Delphi und für Visual Basic

sind ebenfalls enthalten.

Zur Installation des Treibers benutzen Sie bitte die auf der CD

enthaltene Installationsversion im Verzeichnis /Install/Win95Drv.

Hiermit werden alle Treiberdateien in die vorgesehenen

Verzeichnisse installiert.

Falls Sie Visual C++ benutzen, so ist es möglich, die Library

Datei SPECTRUM.LIB mit in ein Projekt zu integrieren, um die

Funktionen des Treibers auf einfache Weise in das Programm

Windows 95 (VXD)

The driver consists of a 32 bit windows DLL which includes all

functions of the driver and a virtual device driver (VXD). The DLL

can be used with all systems which accept 32 bit windows DLL’s.

Examples for Microsoft Visual C++ 4.x, Borland Delphi and

Microsoft Visual Basic are included.

You need to use the install program for driver installtion. The

program is located on CD in the directory /Install/Win95Drv.

The program installs all driver files in the correct directory.

If you are using Microsoft Visual C++, you may use the delivered

library file SPECTRUM.LIB to access the driver functions easily.

The library file will not work with Borland compilers.

The only difference between the both DLL’s is the calling

convention. The file SPECTRUM.DLL uses _cdecl definition (for C,

Содержание PCI.412

Страница 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 ...

Страница 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 ...

Страница 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...

Страница 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 ...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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 ...

Страница 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...

Страница 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...

Страница 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 ...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Отзывы: