Hi Mark,
I'm not sure, that problem is in cache. You can test it easy. Add function Ivi_InvalidateAllAttributes (tktds2x0); before ConfigureChannel(...) which returns error. If problem is in the cache function returns VI_SUCCESS.
In the next step independent on the result, replace your ConfigureChannel function with set attribute functions in following order.
IviScope_SetAttributeViBoolean (tktds2x0, channel, IVISCOPE_ATTR_CHANNEL_ENABLED, enabled);
IviScope_SetAttributeViReal64 (tktds2x0, channel, IVISCOPE_ATTR_PROBE_ATTENUATION, probeAttenuation);
IviScope_SetAttributeViReal64 (tktds2x0, channel, IVISCOPE_ATTR_VERTICAL_RANGE, range);
IviScope_SetAttributeViInt32 (tktds2x0, channel, IVISCOPE_ATTR_VERTICAL_COUPLING, coupling);
IviScope_SetAtt
ributeViReal64 (tktds2x0, channel, IVISCOPE_ATTR_VERTICAL_OFFSET, offset);
I believe that one from ATTENUATION or RANGE attributes returns this error. And you have set trigger type to IVISCOPE_VAL_AC_LINE_TRIGGER.
Please can you attach log file from spy instead of jpeg picture. I cannot reproduce this error.
Best Regards,
Zdenek