Hardware version, Date of production, Serial number – Spectrum Brands MC.31XX User Manual
Page 38: Maximum possible sample rate, Installed memory, Installed features and options
38
MC.31xx Manual
Initialization
Programming the Board
Hardware version
Since all of the MI, MC and MX boards from Spectrum are modular boards, they consist of one base board and one or two (only PCI and
CompactPCI) piggy-back modules. This register SPC_PCIVERSION gives information about the revision of either the base board and the mod-
ules. Normally you do not need this information but if you have a support question, please provide the revision together with it.
If your board has a piggy-back expansion module mounted (MC und MI series boards only) you can get the hardwareversion with the fol-
lowing register.
Date of production
This register informs you about the production date, which is returned as one 32 bit longword. The upper word is holding the information
about the year, while the lower byte informs about the month. The second byte (counting from below) is not used. If you only need to know
the production year of your board you have to mask the value accordingly. Normally you do not need this information, but if you have a
support question, please provide the revision within.
Serial number
This register holds the information about the serial number of the board. This numer is unique and should always be sent together with a
support question. Normally you use this information together with the register SPC_PCITYP to verify that multiple measurements are done with
the exact same board.
Maximum possible sample rate
This register gives you the maximum possible samplerate the board can run however. The information provided here does not consider any
restrictions in the maximum speed caused by special channel settings. For detailed information about the correlation between the maximum
samplerate and the number of activated chanels please refer th the according chapter.
Installed memory
This register returns the size of the installed on-board memory in bytes as a 32 bit integer value. If you want to know the ammount of samples
you can 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 following example is written for a „two bytes“ per sample board (12, 14 or 16 bit board).
Installed features and options
The SPC_PCIFEATURES register informs you about the options, that are installed on the board. If you want to know about one option being
installed or not, you need to read out the 32 bit value and mask the interesting bit.
Register
Value
Direction
Description
SPC_PCIVERSION
2010
r
Board revision: bit 15..8 show revision of the base card, bit 7..0 the revision of the modules
Register
Value
Direction
Description
SPC_PCIEXTVERSION
2011
r
Board’s expansion module hardware revision as integer value.
Register
Value
Direction
Description
SPC_PCIDATE
2020
r
Production date: year in bit 31..16, month in bit 7..0, bit 15..8 are not used
Register
Value
Direction
Description
SPC_PCISERIALNO
2030
r
Serial number of the board
Register
Value
Direction
Description
SPC_PCISAMPLERATE
2100
r
Maximum samplerate in Hz as a 32 bit integer value
Register
Value
Direction
Description
SPC_PCIMEMSIZE
2110
r
Instaleld memory in bytes as a 32 bit integer value
SpcGetParam (hDrv, SPC_PCIMEMSIZE, &lInstMemsize);
printf ("Memory on board: %ld MBytes (%ld MSamples)\n", lInstMemsize /1024 / 1024, lInstMemsize /1024 / 1024 /2);
Register
Value
Direction
Description
SPC_PCIFEATURES
2120
r
PCI feature register. Holds the installed features and options as a bitfield, so the return value must be
masked with one of the masks below to get information about one certain feature.
PCIBIT_MULTI
1
Is set if the Option Multiple Recording / Multiple Replay is installed.
PCIBIT_DIGITAL
2
Is set if the Option Digital Inputs / Digital Outputs is installed.
PCIBIT_GATE
32
Is set if the Option Gated Sampling / Gated Replay is installed.
PCIBIT_SYNC
512
Is set if the Option Synchronization is installed for that certain board, regardless what kind of synchronization you
use. Boards without this option cannot be synchronized with other boards.
PCIBIT_TIMESTAMP
1024
Is set if the Option Timestamp is installed.