AnsweredAssumed Answered

U2653A C System.AccessViolationException

Question asked by chribe on Apr 24, 2013
Latest reply on Nov 20, 2013 by pennantmike
I would like to control the Agilent U2653A USB DAQ with IVI-Com Drivers and C# 2010. Unfortunatelly, I get an exception when initialising the driverSystem.AccessViolationExceptionSystem.AccessViolationException.

Here is the code:

// Setup VISA resource descriptor
string resourceDesc = "USBInstrument1";
// Setup IVI-defined initialization options
string standardInitOptions = "QueryInstrStatus=true, Simulate=false";
// Setup driver-specific initialization options
string driverSetupOptions = "DriverSetup= Model=U2653A, Trace=false";

driver.Initialize(resourceDesc, false, false, standardInitOptions + "," + driverSetupOptions);

The exception message says: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt"
The exception occures on Win7 and WinXP.
I've tried different versions of the IVI driver and the device driver.

Does anyone have a solution for this problem?