/// <summary> /// Do the measure, trigger and wait for result /// </summary> /// <param name="input"></param> /// <param name="timeout"></param> public override bool Measure(CompMeasure input, Miliseconds timeout) { lock (_waitMeasureDone) { _waitMeasureDone.Reset(); Trigger(input); } try { U.BlockOrDoEvents(_waitMeasureDone, timeout.ToInt); return(true); } catch { U.LogError("Timeout waiting for measure of '{0}'", input.Nickname); } return(false); }
/// <summary> /// Do the measure, trigger and wait for result /// </summary> /// <param name="input"></param> /// <param name="timeout"></param> public virtual bool Measure(CompMeasure input, Miliseconds timeout) { // Simulation return(true); }
/// <summary> /// Trigger the input to set the value /// </summary> /// <param name="input"></param> public virtual void Trigger(CompMeasure input) { input.TriggerMode = CompMeasure.eTriggerMode.SingleTrigger; }