Channel rerouting | Analog Inputs |
|
|
Channel rerouting
If you only use one or half of the available channels per module enabled, you can route the input connectors to the acquisition channels differently. Normally connector channel 0 is routed to the acquisition channel 0. If you just need for example one channel it might be usefull to record just the signal connected for example to connector channel 2. This can be done seperately for every acquisition module with the reroute registers shown in the tables below.
Rerouting information for module 0:
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 | |
| 1 | Channel 1 | Channel 1 | |
|
|
|
| |
| 2 | Channel 2 | Channel 2 | |
|
|
|
| |
| 3 | Channel 3 | Channel 3 | |
|
| Rerouting with one channel enebled on module 0. | Rerouting with twoe channels enebled on module 0. |
As the channels are rerouted internally, the normal channel enable settings for channel 0 (and channel 1) have to to be set accordingly first.
Rerouting information for module 1:
Register | Value | Direction | Description |
|
SPC_CHROUTE1 | 11020 | r/w | Defines the rerouting information for module 1 (channel 4 up to channel 7). | |
| 0 | Channel 4 | Channel 4 | |
| 1 | Channel 5 | Channel 5 | |
|
|
|
| |
| 2 | Channel 6 | Channel 6 | |
|
|
|
| |
| 3 | Channel 7 | Channel 7 | |
|
| Rerouting with one channel enebled on module 1. | Rerouting with twoe channels enebled on module 1. |
As the channels are rerouted internally, the normal channel enable settings for channel 4 (and channel 5) have to to be set accordingly first.
It is admitted that this feature looks very complicated at first glance. But once you got the idea it can help you to reduce the work of rewirering the cables to the input connectors. The following table is showing some examples on how to use the channel rerouting registers.
|
| Channels to activate |
| Acquisition channel Chx contains data of connector |
|
|
|
|
|
|
|
| |||||
Ch0 | Ch1 | Ch2 | Ch3 | Ch4 | Ch5 | Ch6 | Ch7 | Value for SPC_CHROUTE0 | Value for SPC_CHROUTE1 | Ch0 | Ch1 | Ch2 | Ch3 | Ch4 | Ch5 | Ch6 | Ch7 |
X |
|
|
|
|
|
|
| 1 | not used | Ch1 |
|
|
|
|
|
|
|
X |
|
|
| X |
|
|
| 2 | 1 | Ch2 |
|
|
| Ch5 |
|
|
|
X | X |
|
|
|
|
|
| 1 | not used | Ch1 | Ch2 |
|
|
|
|
|
|
X | X |
|
| X | X |
|
| 2 | 3 | Ch2 | Ch3 |
|
| Ch7 | Ch4 |
|
|
The following programming example sets up the relevant registers for the rerouting settings of the last line in the table above:
SpcSetParam (hDrv, SPC_CHENABLE, CHANNEL0 CHANNEL1 CHANNEL4 CHANNEL5); | // All required | acquisition | ||||
SpcSetParam | (hDrv, | SPC_CHROUTE0, 2); | // channels must | be | enabled | |
// | Rerouting for | module 0 | ||||
SpcSetParam | (hDrv, | SPC_CHROUTE1, 3); | // | and module 1 | are | set. |
42 | MC.31xx Manual |