Why do I see 0, 1, 2 or 3 in ChanDivider variable in SAGA configuration files?

Different values of ChanDivider are to set the sampling rate per channel type.

SAGA supports two base sample rates: 4000Hz and 4096Hz which can be specified in configuration (.xml) files as shown below:

<DeviceConfig>
<Device>
<BaseSampleRateHz>4000</BaseSampleRateHz>

Once the base sample rate is specified, sample rate per channel type (UNI, AUX, BIP) can be set by assigning 0, 1, 2 or 3 to the 'ChanDivider' variable. The sampling frequency of SAGA is defined by dividing the base sample rate by powers of 2. The 'ChanDivider' variable indicates the power of which is divided by. For example, if 'ChanDivider' is 0, the 'BaseSampleRateHz' is divided by 2^0, which is equal to 1.

Assuming the base sample rate is set to 4000Hz (as shown above), and a sample rate of 2000Hz  is desired for UNI channels the value of 'ChanDivider' needs to be set to 1 (as shown for one example channel below). In this example, the sample rate of channel UNI 01 will be calculated as the base sample rate divided by 2 to the power of 1 (value of 'ChanDivider'). 

<Channel>
<ChanNr>1</ChanNr>
<ChanDivider>1</ChanDivider>
<AltChanName>UNI 01</AltChanName>

It's worth mentioning a channel can be disabled by setting its 'ChanDivider' to '-1'. Please note, the STATUS-channel and the COUNTER-channel cannot be disabled.

CAUTION

Similar types of channels should have the same sample rate. All unipolar channels need to have the same sample rate, all BIP channels need to have the same sample rate, and all AUX channels need to have the same sample rate.

 

Do you have further questions on this topic?

Contact ✉️ support@tmsi.com, 📞+31 (0)541 539 013 or 📄 request support.