38 MI.20xx 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 mo-
dules. 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 follo-
wing 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).
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);