04-30-2012 09:03 AM
Hello. I´m using a Tektronix TDS2001C and i´m trying to use the Math function (tktds1k2k_ConfigureMathChannel) in CVI but every time I try to use the function it give me a NON-FATAL RUN-TIME ERROR.
This is my basic initialization for the Instrument:
if (iErr == 0) iErr = tktds1k2k_ConfigureChannel (ScopeHandler, "CH1", 500.0, 0.0, TKTDS1K2K_VAL_AC, 10.0, VI_TRUE);
if (iErr == 0) iErr = tktds1k2k_ConfigureChannel (ScopeHandler, "CH2", 500.0, 0.0, TKTDS1K2K_VAL_AC, 10.0, VI_TRUE);
if (iErr == 0) iErr = tktds1k2k_ConfigureMathChannel (ScopeHandler, TKTDS1K2K_VAL_MATH_CH1_MINUS_CH2);
Does anyone can give a suggestion or clues about it?
05-09-2012 10:49 AM
Did you try following the example that is included in the IVI driver? Since the problem seems to be after setting the attribute for Configure Math Channel by checking the soure it includes a note about using ConfigureMathChannelFFT