AnsweredAssumed Answered

34980A IVI-COM driver and VisualStudio2010

Question asked by Wernherr on Aug 6, 2010
Latest reply on Oct 27, 2010 by tranpham

I have written a C#-driver for the "34980A Multifunction Switch/Measure Unit" using the Agilent IO Library 15.5 and the latest IVI-COM driver version for the 34980A instrument.

Today I migrated from Microsoft Visual Studio 2008 Express Edition to Microsoft Visual Studio 2010 Professional Edition.
Now I face the problem that in one of three cases the driver crashes inside a try-catch-block when trying to initialize the host.

My code is like:
        private const string mVISAAlias = "DataSwitch";
        private const string mStandardInitOptions = "QueryInstrStatus=true, Simulate=false";
        private const string mDriverSetupOptions = "DriverSetup= Model=Agilent34980A, Trace=true, TraceName=DataSwitch";
        IAgilent34980A2  host = new Agilent34980AClass();

        host.Initialize(mVISAAlias, false, true, mStandardInitOptions + "," + mDriverSetupOptions);

In the last line the programm terminates.
It even doen't throw an Exception.
That's why I put in the "Trace=true" in the DriverSetup string but the trace file only comprises the header.
So it seems the driver chrashes down before being able to comminicate to the instrument.

When I used the older Visual Studio I didn't have any problems.

Is there a known problem with IVI-COM drivers and VS2010?
Thanks for any hints!