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)
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 |
If your board has a
Register | Value | Direction | Description |
SPC_PCIEXTVERSION | 2011 | r | Board’s expansion module hardware revision as integer value. |
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.
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 |
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.
Register | Value | Direction | Description |
SPC_PCISERIALNO | 2030 | r | Serial number of the 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.
Register | Value | Direction | Description |
SPC_PCISAMPLERATE | 2100 | r | Maximum samplerate in Hz as a 32 bit integer value |
Installed memory
This register returns the size of the installed
Register | Value | Direction | Description |
SPC_PCIMEMSIZE | 2110 | r | Instaleld memory in bytes as a 32 bit integer value |
The following example is written for a „two bytes“ per sample board (12, 14 or 16 bit board).
SpcGetParam (hDrv, SPC_PCIMEMSIZE, &lInstMemsize);
printf ("Memory on board: %ld MBytes (%ld MSamples)\n", lInstMemsize /1024 / 1024, lInstMemsize /1024 / 1024 /2);
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_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. |
38 | MC.31xx Manual |