Hey everyone,
niDMM has a great function that you could call: (from help file)
[niDMM_IsOverRange
Usage:
ViStatus = niDMM_IsOverRange(ViSession Instrument_Handle, ViReal64 Measurement_Value, ViBoolean* Is_Over_Range)
"Takes a measurement value and determines if the value is a valid measurement or a value indicating that an overrange condition occurred."]
You could call this after a read and check for the over range condition. Immediately following you could check the value of the ViBoolean that is set and return your value accordingly. i.e.
//sample
ViStatus = niDMM_Read(...................., Reading)
ViStatus = niDMM_IsOverRange(........, Reading , Is_Over_Range)
if(Is_Over_Range)
Reading = -99.99;
//rest of code
Just a thought
Sincerely,
Gavin Goodrich
Applications Engineer
National Instruments