Spectrum Brands MC.31 Series Скачать руководство пользователя страница 16

16

MC.31xx Manual

Installing the board in the system

Hardware Installation

Installing multiple boards synchronized by starhub

Hooking up the boards

Before mounting several synchronized boards for a multi channel system into the 
chassis you have to hook up the boards with their synchronization cables first. 
Spectrum ships the boards together with the needed amount of synchronization ca-
bles. All of them are matched to the same length, to achieve a zero clock delay 
between the boards.

Only use the included flat ribbon cables.

All of the boards, including the board that carrys the starhub piggy-back module, 
must be wired to the starhub as the figure is showing exemplarily for three synchro-
nized boards.

As you can see, all boards have a notch to get the cables to the other boards. 
Please only use these notches to lay the cables to avoid damage to the cables when 
inserting the boards into the host system.

It does not matter which of the 16 connectors on the starhub module you use for 
which board. The software driver will detect the types and order of the synchro-
nized boards automatically. The right figure shows the three cables mounted next 
to each other only to achieve a better visibility.

As some of the synchronization cables are not secured against wrong plugging you should take 
care to have the pin 1 markers on the multiple connectors and the cable on the same side, as the 
figure on the right is showing.

Mounting the wired boards

The locks on the top and bottom side of all CompactPCI brackets need to be unlocked and opened before installing the boards into the slots 
of the system. Therefore you need to press the little buttons on the inside of the fasteners and move them outwards (see figure). Now slowly 
insert the boards into the host system using the key ways until both locks snap in with a „click“.

While inserting the boards take care not to cant them and make sure that the cables are not squeezed by the 
backplane or any other components.

After the board’s insertion fasten the screws of all brackets carefully, without overdoing. The figure shows exemplarily a board with two in-
stalled modules.

Содержание MC.31 Series

Страница 1: ...OSSHANSDORF GERMANY PHONE 49 0 4102 6956 0 FAX 49 0 4102 6956 66 E MAIL info spec de INTERNET http www spectrum instrumentation com MC 31xx fast 12 bit transient recorder A D converter board for Compa...

Страница 2: ...Windows NT Window 2000 and Windows XP are trademarks registered trademarks of Microsoft Corporation LabVIEW DASYLab Diadem and LabWindows CVI are trademarks registered trademarks of National Instrume...

Страница 3: ...ized boards 17 Software Driver Installation 18 Interrupt Sharing 18 Windows 98 19 Installation 19 Version control 19 Driver Update 20 Windows 2000 21 Installation 21 Version control 21 Driver Update 2...

Страница 4: ...ry Pre and Posttrigger 47 Starting without interrupt classic mode 48 Starting with interrupt driven mode 49 Data organization 50 Sample format 50 Reading out the data with SpcGetData 51 FIFO Mode 53 O...

Страница 5: ...mode 86 Acquisition with Multiple Recording 86 Option Extra I O 87 Digital I Os 87 Channel direction 87 Transfer Data 87 Analog Outputs 87 Programming example 88 Option Digital inputs 89 Synchronizati...

Страница 6: ...age with the latest bug fixes and new features on our site Please read this manual carefully before you install any hardware or software Spectrum is not responsible for any hardware failures resulting...

Страница 7: ...series The following overview shows the different available models of the MC 31xx series They differ in the number of mounted acquisition modules and the number of available channels You can also see...

Страница 8: ...8 MC 31xx Manual Different models of the MC 31xx series Introduction MC 3112 MC 3122 MC 3132...

Страница 9: ...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 extra I O option is useful if an external ampli...

Страница 10: ...option together with the timestamp or extra I O option because the is just space for one piggyback module on the on board expansion slot Timestamp The timestamp module was designed to record the exact...

Страница 11: ...led The serial number of your Spectrum board Every board has a unique serial number The board revision consisting of the base version and the module version A list of the installed options A complete...

Страница 12: ...Watt Power consumption 5 V power down max 2 5 A 12 5 Watt Trigger input Standard TTL level Low 0 5 level 0 8 V High 2 0 V level 5 5 V Trigger pulse must be valid 2 clock periods Clock input Standard...

Страница 13: ...le memory instead of 8 MSample standard mem MC3112 MC 3112 with 8 MSample memory and drivers SBench 5 x MC3xxx 64M Option 64 MSample memory instead of 8 MSample standard mem MC3120 MC 3120 with 8 MSam...

Страница 14: ...cases CompactPCI systems are already equipped with sufficient cooling power In that case please make sure that the air stream is not blocked During longer pauses between the single measurements the p...

Страница 15: ...rtion fasten the four screws of both brackets carefully without overdoing The figure shows an example of a board with two installed modules Installing a board with extra I O Option XMF The locks on th...

Страница 16: ...he starhub module you use for which board The software driver will detect the types and order of the synchro nized boards automatically The right figure shows the three cables mounted next to each oth...

Страница 17: ...to the host system The outer boards have a soldered termination for the sync bus These boards are marked with an additional sticker Only mount the cluster of synchronized boards in a row with the dedi...

Страница 18: ...an only use one interrupt exclusively If this equipment shares an interrupt with the Spectrum board the system will hang up if the second driver is loaded the time is depending on the operating system...

Страница 19: ...stant shows you the exact board type that has been found like the MI 3020 in the exam ple Older boards before june 2004 show Spectrum Board in stead The drivers can be used directly after installation...

Страница 20: ...After down loading the driver unzip it to a temporary folder A new driver version is directly in stalled from the device manager Therefore please open the properties page of the driver as shown in the...

Страница 21: ...stead The drivers can be used di rectly after installation It is not necessary to restart the system The installed drivers are linked in the device man ager Below you ll see how to ex amine the driver...

Страница 22: ...iver as shown in the sec tion before As next step click on the update driver button and follow the steps of the driver installation in a similar way to the previous board and driver installation Pleas...

Страница 23: ...ered with the board as installation source The driver files are located on CD in the directory Driver Win98_2k_XP The hardware assistant shows you the exact board type that has been found like the MI...

Страница 24: ...top and exit all software that could access the boards A new driver version is directly installed from the device manager Therefore please open the properties page of the driver as shown in the sectio...

Страница 25: ...NT driver The Windows NT driver must be configured by the Driver Configuration utility to support more than one board The Driver Configu ration utility is automatical ly installed with the driver The...

Страница 26: ...rum PCI PXI and CompactPCI boards The boards are recognized automatically after driver loading Load the driver with the insmod command The insmod command may generate a warning that the driver module...

Страница 27: ...rights to the device Now it is possible to access the board using this device Driver info Information about the installed boards could be found in the proc spectrum file All PCI PXI and CompactPCI bo...

Страница 28: ...to first test the board function with a ready to run software before starting with programming A full version of SBench 5 x is de livered with the board on CD The program supports all actual acquisiti...

Страница 29: ...file that is delivered together with the drivers The library file can be found on the CD in the path Examples vc c_header Please include the library file spclib_bcc lib in your Borland C Builder proj...

Страница 30: ...be merged with the standard windows examples described under Visual C Driver functions The driver contains five functions to access the hardware Function SpcInitPCIBoard This function initializes all...

Страница 31: ...ype handle Function SpcSetData Writes data to the board for a specific memory channel The board must first be initialized The value nr contains the index of the board that you want to access the ch pa...

Страница 32: ...bus type independent As a result that means that the MI30xx directory con tains examples for the MI 30xx the MC 30xx and the MX 30xx families The example directories contain a running project file for...

Страница 33: ...lue in case of malfunction Function SpcSetData Writes data to the board for a specific memory channel The board must first be initialized The value nr contains the index of the board that you want to...

Страница 34: ...n SpcInitPCIBoard Function SpcSetParam All hardware settings are based on software registers that can be set by the function SpcSetParam This function sets a register to a defined value or executes a...

Страница 35: ...enerator or i o boards The function is not available on acquisition boards Function SpcGetData Reads data from the board from a specific memory channel The board must first be initialized The value nr...

Страница 36: ...s that contain either a board number Windows or a handle Linux use the common parameter name hDrv Windows users simply have to set the parameter to the according board number as the example below is s...

Страница 37: ...by the driver after the PCI initialization The information is found in the on board EEPROM and can easily be read out by your own application software All of the following PCI registers are read only...

Страница 38: ...store you must regard the size of one sample of your Spectrum board All 8 bit boards can store only sample per byte while all other boards with 12 14 and 16 bit use two bytes to store one sample The f...

Страница 39: ...se refer to the Driver Installation chapter Linux users can get the driver version by simply accessing the following register for the kernel driver PCIBIT_STARHUB 2048 Is set on the board that carrys...

Страница 40: ...if nCount 0 printf No Spectrum board found n return request and print Board type and some information SpcGetParam hDrv SPC_PCITYP lBrdType SpcGetParam hDrv SPC_PCIMEMSIZE lInstMemsize SpcGetParam hDrv...

Страница 41: ...ng out the channel enable register can be done directely after setting it or later like this Important note on channels selection As some of the manuals passages are used in more than one hardware man...

Страница 42: ...Register Value Direction Description SPC_CHROUTE0 11010 r w Defines the rerouting information for module 0 channel 0 up to channel 3 0 Channel 0 Channel 0 Channel 0 Channel 0 and Channel 1 Channel 1 1...

Страница 43: ...the input range of channel0 SPC_AMP1 30110 r w Defines the input range of channel1 SPC_AMP2 30210 r w Defines the input range of channel2 SPC_AMP3 30310 r w Defines the input range of channel3 SPC_AMP...

Страница 44: ...en writing a program that should run with different board families it is useful to just read out the possible offset than can be programmed You can use the following read only register It will give yo...

Страница 45: ...river the automatically adjustment will only affect these values After exiting your program all calibration information will be lost To give you a possibility to save your own settings every Spectrum...

Страница 46: ...ue Direction Description SPC_ADJ_LOAD 50000 w Loads the specified set of settings from the EEPROM The default settings are automatically loaded when the driver is started r Reads out what kind of sett...

Страница 47: ...d before a trigger event will be detected Programming Memory Pre and Posttrigger At first you have to define how many samples are to be recorded at all and how many of them should be acquired after th...

Страница 48: ...om the host system Your program has full CPU time to do any calculations or display The status register shown in the table below shows the current status of the board The most simple programming loop...

Страница 49: ...started in the interrupts mode it definitely will not return until either the recording has finished or the timeout time has expired In that case the function will return with an error code See the a...

Страница 50: ...ding the sample order from the normal mode with only one or two channels per module enabled The only difference is that one 16 bit sample now consists of two 8 bit samples For details on the sample fo...

Страница 51: ...before programmed memory size At this point please keep in mind that depending on the activated channels there may be more than one board channel in one memory channel This len value must be a total m...

Страница 52: ...ory for the data pointers with the maximum size lMemsize SpcGetData hDrv 0 0 lMemsize dataptr pnData 0 no demultiplexing is necessary on channel 0 SpcGetData hDrv 1 0 lMemsize dataptr pnData 1 neither...

Страница 53: ...er one is filled up with data The driver is doing this job automatically in the background After the driver has finsihed transferring the data the application software gets a signal and can process da...

Страница 54: ...ed in bytes This length is used for hardware and software buffers as well Both have the same length The maximum length that can be used is depending on the installed on board memory Each FIFO buffer c...

Страница 55: ...mples in Buffer 2 x 2 x Samples in Buffer 2 x 2 x Samples in Buffer 2 x 2 x Samples in Buffer 4 Channels 4 x Samples in Buffer 4 x 2 x Samples in Buffer 4 x 2 x Samples in Buffer 4 x 2 x Samples in Bu...

Страница 56: ...and returns control immideately back to the driver FIFO acquisition example Data organization When using FIFO mode data in memory is organized in some cases a little bit different then in standard mod...

Страница 57: ...format The sample format in FIFO mode does not differ from the one of the standard non FIFO mode Please refer to the relating passage concerning the sample format in the standard acquisition chapter...

Страница 58: ...in default mode by a PLL and dividers out of an internal 40 MHz frequency reference In most cases the user does not need to care on how the desired sample rate is generated by multiplying and dividin...

Страница 59: ...the clock input If the external connector is used as an input either for feeding in an external reference clock or for external clocking you can enable a 50 Ohm termination on the board If the termina...

Страница 60: ...set according to the clock that is fed in externally The range must not be left by more than 5 when the board is running Remember that the ranges depend on the activated channels as well so a differe...

Страница 61: ...6 MHz 36 MHz x x Standard 5 MHz 5 MHz max x x FIFO 2 5 MHz 2 5 MHz 7 5 MHz 7 5 MHz 17 5 MHz 17 5 MHz 36 MHz 36 MHz x x x x Standard 2 5 MHz 2 5 MHz 7 5 MHz 7 5 MHz 17 5 MHz 17 5 MHz 36 MHz 36 MHz x x...

Страница 62: ...or replay begins This can be useful to synchronize external equipment with your Spectrum board Example for setting up the software trigger External TTL trigger Enabling the external trigger input is d...

Страница 63: ...how to set up the board for positive TTL trigger Negative TTL trigger This mode is for detecting the falling edges of an external TTL sig nal The board will trigger on the first falling edge that is...

Страница 64: ...xternal TTL signal that are shorter than a programmed pulsewidth If the pulse is longer than the programmed pulsewidth no trigger will be detect ed The board will trigger on the first pulse matching t...

Страница 65: ...he first pulse matching the trigger condition after starting the board The next triggerevent will then be detected if the actual recording replay has finished and the board is armed and waiting for a...

Страница 66: ...ltrigger must be activated with SPC_TRIGGERMODE SPC_TRIGGERMODE4 40204 r w Sets the channel trigger for channel4 Channeltrigger must be activated with SPC_TRIGGERMODE SPC_TRIGGERMODE5 40205 r w Sets t...

Страница 67: ...er detection SpcSetParam hDrv SPC_TRIGGERMODE1 TM_CHXPOS Set triggermode of channel1 to positive edge trigger SpcSetParam hDrv SPC_TRIGGERMODE2 TM_CHXOFF Disable channel2 concerning trigger detection...

Страница 68: ...rigger detection The result would be 7 81 mV which is the step width for your type of board withing the actually chosen input range Input ranges Triggerlevel 50 mV 100 mV 200 mV 500 mV 1 V 2 V 5 V 10...

Страница 69: ...er on positive and negative edge The analog input is continuously sampled with the selected sample rate If the programmed triggerlevel is crossed by the channel s signal either rising or falling edge...

Страница 70: ...signal from higher to lower values falling edge the pulsewidth counter is started If the signal crosses the triggerlevel again in the opposite direction within the the programmed pulsewidth time no tr...

Страница 71: ...signal from higher to lower values falling edge the pulsewidth counter is started If the pulsewidth counter reaches the programmed amount of samples no trigger will be detected If the signal does cro...

Страница 72: ...r level within the the programmed pulsewidth time no trigger will be detected If the pulsewidth counter reaches the programmed amount of samples a triggerevent will be detected Register Value Directio...

Страница 73: ...s the programmed amount of samples with out the signal crossing the lower level no trigger will be de tected If the signal does cross the lower level within the the pro grammed pulsewidth time a trigg...

Страница 74: ...inside a triggerevent will be detected Register Value Direction set to Value SPC_TRIGGERMODE 40000 r w TM_CHANNEL 20040 SPC_TRIGGERMODE0 40200 r w TM_CHXWINENTER 10040 SPC_HIGHLEVEL0 42000 r w Sets t...

Страница 75: ...re the pulsewidth counter has stopped no trig ger will be detected If the pulsewidth counter stops and the signal is still outside the window the triggerevent will be detected Register Value Direction...

Страница 76: ...d the signal is still outside the window no trigger will be detected If the signal enters the window before the pulsewidth coun ter has stopped the triggerevent will be detected Register Value Directi...

Страница 77: ...program This mode sigficantly reduces the average data transfer rate on the PCI bus This enables you to use faster sample rates then you would be able to in FIFO mode without Multiple Recording Usuall...

Страница 78: ...les 2 5 MS s x x 4 samples 4 samples 3 samples 5 samples 2 5 MS s x x 2 samples 10 samples 3 samples 11 samples 2 5 MS s x x x x 4 samples 4 samples 3 samples 5 samples 2 5 MS s x x x x 2 samples 10 s...

Страница 79: ...ode is that you can stream data online to the hostsystem with a lower average data rate than in conventional FIFO mode without gated sampling You can make realtime data processing or store a huge amou...

Страница 80: ...n more samples are recorded before the board pauses see figure The figure on the right is showing this end delay exem plarily for three possible gate signals As all samples are counted from zero The e...

Страница 81: ...les 3 samples 5 samples 5 MS s x 4 samples 16 samples 5 samples 17 samples 5 MS s x x 4 samples 4 samples 3 samples 5 samples 5 MS s x x 4 samples 16 samples 5 samples 17 samples 2 5 MS s x x 4 sample...

Страница 82: ...EG_LP signal below level longer than the programmed pulsewidth signal crossing level from low to high TM_CHXWINENTER signal entering window between levels signal leaving window between levels TM_CHXWI...

Страница 83: ...standard mode the timestamp counter is set to zero once by writing the TS_RESET commando to the com mand register After that command the counter counts continuously The timestamps of all recorded tri...

Страница 84: ...C_TIMESTAMP_CMD 47000 w Writes a command to the timestamp command register SPC_TIMESTAMP_CMD 47000 r Reads out the actual timestamp mode TS_RESET 0 Resets the whole counter of the timestamp module to...

Страница 85: ...know what parts of your buffer contain valid timestamps Data format Each timestamp is 56 bit long and internally mapped to 64 bit 8 bytes The counter value contains the number of clocks that have bee...

Страница 86: ...amp data buffer free plTimeStamps Reset the board and flush the FIFO SpcSetParam hDrv SPC_COMMAND SPC_RESET Simple setup for recording SpcSetParam hDrv SPC_CHENABLE 1 1 channel for recording SpcSetPar...

Страница 87: ...n be set in a stepsize of 5 mV The table below shows the registers you must write the desired levels too If you read these outputs the actual output level is given back from an internal software regis...

Страница 88: ...of digital I O transfer SpcSetParam hDrv SPC_XIO_DIGITALIO 0x00005A write data to D7 D0 SpcGetParam hDrv SPC_XIO_DIGITALIO lData read data and write values to lData write some values to the analog cha...

Страница 89: ...hown in the table below Due to technical issues there is a board dependant fixed delay between the analog and digital samples The delay for your type of board can be found in the technical data sectio...

Страница 90: ...rds are marked with the option cs end while middle boards are marked with the option cs mid When the boards are synchronized by the option cascading there will be a delay of about 500 ps between two a...

Страница 91: ...ds trigger detection is armed Take care to prevent boards with a long pretrigger setup time from hangup by adequately checking the board s status Long setup times are needed if either you use a huge p...

Страница 92: ...ve to tell the driver additionally which of the boards are working as trigger slaves Each of the synchronized boards must be set up either as a trigger master or as a trigger slave to get the synchron...

Страница 93: ...all of the boards that are defined as trigger slaves first For details on how to start the board in the different modes in standard mode non FIFO please refer to the according chapter earlier in this...

Страница 94: ...board memory now Please refer to the related chapter for the standard non FIFO mode in this manual If none of your synchronized boards is used for recording purposes you can ignore this step Example f...

Страница 95: ...t software buffer is transferred For that reason it is absolutely necessary to start different threads for i 0 i FIFO_BUFFERS i for b 0 b 3 b pnData b i ptr16 GlobalAlloc GMEM_FIXED FIFO_BUFLEN alloca...

Страница 96: ...ster of the board SPC_FIFOSTART 10 Starts the board with the current register settings in FIFO mode and waits for the first interrupt 3 trigger synchronization of trigger master board s SpcSetParam hD...

Страница 97: ...ctually activated channels per mod ule for the different channel setups As mentioned above the board with the highest sum sample rate must be set up as the clock master This maximum sum sample rate is...

Страница 98: ...ously with the same speed To give you an idea on how to setup the boards the calculations are shown in the following two examples Each example contains of a simple setup of two synchronized boards It...

Страница 99: ...een the samples of the different boards depending on the type of board the selected clock divider and the acti vated channels This delay is fixed for data acquisition or generation with the same setup...

Страница 100: ...d ERR_READABORT 104h 260 Data read is not allowed after aborting the data acquisition ERR_NOACCESS 105h 261 Access to this register denied No access for user allowed ERR_POWERDOWN 106h 262 Not allowed...

Страница 101: ...c n c n c n c B21 B22 B23 B24 B25 B26 B27 B28 B29 B30 B31 B32 B33 B34 B35 B36 B37 B38 B39 B40 D16 GND D17 GND D18 GND D19 GND D20 GND D21 GND D22 GND D23 GND n c n c n c n c A21 A22 A23 A24 A25 A26 A...

Страница 102: ...g generation boards only as well as for the digital I O or pat tern generator boards The flat ribbon cable is shipped with the boards that are equipped with one or more of the above mentioned options...

Отзывы: