I gather this function should be called whenever I change a particular Channel (a,b,c,d, etc...)'s voltage range (i.e. the Vertical scale) or turn a channel off?
I actually store a default value (I use '99') as the Range index for each channel when the channel is off (i.e. unit.channelSettings( 'channelindex').range Obviously, this is out of the range of the inputRanges array.... I also turn the boolean flag .enabled to false.
Both of these values are passed to ps5000SetChannel.. I notice that the function returns "INVALID VOLTAGE RANGE" as expected. Not knowing the code in that function, I assume because the channel is off (i.e. enabled = False or 0 in terms of what I pass to the C DLL), this has no side effect does it? The function returns that non-0 status value whenever this happens although I have NOT noticed any problems with it.
Jay
Cart
