AnsweredAssumed Answered

Exception caught in AgilentN67xx.System.WaitForOperationComplete(1000)

Question asked by Phung on May 28, 2015
Latest reply on Jul 9, 2015 by inf_persistence
I am receiving the below error message when trying to set the voltage level on the power supply:

"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

The code to set voltage is:


//Create pointer to the Agilent driver protection interface Agilent.AgilentN67xx.Interop.IAgilentN67xxOutput3 outputPtr; // Get pointer value outputPtr = PS.Outputs.get_Item(PS.Outputs.get_Name(channel));

// turn off the ps outputPtr.VoltageLevel(dummyRange, 0.0);

PS.Systems.WaitForOperationComplete((int)(timeoutSec * 1000));


And the exception occurs on the last line after the power supply voltage was set correctly.

Thank you,