High-Speed Digitizers

cancel
Showing results for 
Search instead for 
Did you mean: 

Disable TDC in PCI5114 Digitizer card

Hi!

I am using the PCI5114 High-Speed Digitizer card to measure pulses from radioactive decays. An important concern is a small re-arm time (= dead time). In the manuals I read that disabling the high-precision TDC results in a reduction of the re-arm time from 10 us to 2 us. However, my code (written in C++) to do so doesn't work. The code is:

"[...]
resultCode = niScope_SetAttributeViBoolean(
    vi,
    "0,1",
    NISCOPE_ATTR_REF_TRIG_TDC_ENABLE,
    NISCOPE_VAL_FALSE);
[...]"


Compilation is no problem. But if I run this code to disable TDC, it just yields a resultCode with the following error message:

"The channel or repeated capability name is not allowed."

The way, how I programmed it, is just analog to the way how other attributes are altered. I mean, if I use the same exact code and just exchange the part "
NISCOPE_ATTR_REF_TRIG_TDC_ENABLE" by "NISCOPE_ATTR_ENABLE_TIME_INTERLEAVED_SAMPLING" it works...

Is my approach wrong? Or: Can't the TDC be switched off for edge triggering?

Thanks,

Johannes
0 Kudos
Message 1 of 2
(6,331 Views)
I finally found the solution...

The attribute is not channel-dependent. Therefore, instead of a channel list the value 0 has to be put into the function call. This works:

"[...]
resultCode = niScope_SetAttributeViBoolean(
    vi,
    0, // !!!
    NISCOPE_ATTR_REF_TRIG_TDC_ENABLE,
    NISCOPE_VAL_FALSE);
[...]"

0 Kudos
Message 2 of 2
(6,327 Views)