AnsweredAssumed Answered

Measuring output current of u3606a from c

Question asked by sb9 on Aug 25, 2015
I am trying to measure the output current of a u3606a from c#, but I get the following exception:

Unhandled Exception: System.Runtime.InteropServices.COMException: VI_ERROR_TMO:
A timeout occurred
   at Agilent.AgU3606x.Interop.AgU3606xClass.get_CurrentAmplitude()
   at MeasureOutputCurrent.Program.VoltageTest() in c:\Users\sb9\workspace\LabNo
tes\Agilent\MeasureOutputCurrent\Program.cs:line 124
   at MeasureOutputCurrent.Program.Main(String[] args) in c:\Users\sb9\workspace
\LabNotes\Agilent\MeasureOutputCurrent\Program.cs:line 69

The meter reports the following errors:
ErrorQuery: -200, Execution error
ErrorQuery: -410, Query INTERRUPTED

I've tried increasing the timeout, but that does not solve the problem. I can read the output current with SOURce:SENSe:CURRent:LEVel? command, but would like to read this from c#. My full source code is here:

Your help will be greatly appreciated.

Edited by: sb9 on Aug 25, 2015 7:35 AM