Tektronix Technical Forums are maintained by community involvement. Feel free to post questions or respond to questions by other members. Should you require a time-sensitive answer, please contact your local Tektronix support center here.

Tried to use C#-Examples for 3706A

Post Reply
h&psoftware
Posts: 4
Joined: December 4th, 2017, 5:33 am
Country: Germany

Tried to use C#-Examples for 3706A

Post by h&psoftware » December 4th, 2017, 10:57 pm

Hi,

I have a 3706A System Switch/Multimeter on my desk with two 3721-Dual-1x20-Cards installed in slot 1 and 4.

My PC runs:

Windows 7 Professional x64 Service Pack 1 and is an Intel Core i5-2450M.
I installed:
[*] IVISharedComponents64_242,
[*] IVINetSharedComponents64_Fx20_1.4.0,
[*] Test Script Builder Software, Suite Version G03.

With the Keithley Test Script Builder I can use the KE37XX_Example_Scripts, everything just works - great.

Then I tried to use the C# Examples with Visual Studio 2017. I always get:
"Failed to create driver class: Die COM-Klassenfactory für die Komponente mit CLSID {7D758DC8-87D1-4C94-9954-1B34A3E83416} konnte aufgrund des folgenden Fehlers nicht abgerufen werden: 80040154."
CSharpExamples SimpleMeasurement: line 283 _driver = new Ke37XXClass();

Take a look at my windows registry:
[*] HKEY_CLASSES_ROOT\Ke37XX.Ke37XX\CLSID (Standard) REG_SZ {7D758DC8-87D1-4C94-9954-1B34A3E83416}
[*] HKEY_LOCAL_MACHINE\Ke37XX.Ke37XX\CLSID (Standard) REG_SZ {7D758DC8-87D1-4C94-9954-1B34A3E83416}
[*] HKEY_CLASSES_ROOT\Ke37XX.Ke37XX.1\CLSID (Standard) REG_SZ {7D758DC8-87D1-4C94-9954-1B34A3E83416}
[*] HKEY_LOCAL_MACHINE\Ke37XX.Ke37XX.1\CLSID (Standard) REG_SZ {7D758DC8-87D1-4C94-9954-1B34A3E83416}
[*] HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{7D758DC8-87D1-4C94-9954-1B34A3E83416} -> see attached file
[*] HKEY_LOCAL_MACHINE\Wow6432Node\CLSID\{7D758DC8-87D1-4C94-9954-1B34A3E83416} -> see attached file

The Keithley.Ke37XX.Interop.dll is where registry tells me to look: C:\Program Files (x86)\IVI Foundation\IVI\Bin\Primary Interop Assemblies\

May be there is a problem with the Wow6432Node in the registry? Other ideas?

Thanks in advance
Stephan

Edit: attached file
Attachments
COM.txt
(5.03 KiB) Downloaded 744 times

mouhoub06020
Posts: 3
Joined: December 6th, 2017, 1:49 am
Country: France

Re: Tried to use C#-Examples for 3706A

Post by mouhoub06020 » December 8th, 2017, 12:44 am

with the .netframwork 4.0 you have to write new Ke37xx() instead of Ke37xxClass(); hope i helped

h&psoftware
Posts: 4
Joined: December 4th, 2017, 5:33 am
Country: Germany

Re: Tried to use C#-Examples for 3706A

Post by h&psoftware » January 10th, 2018, 5:02 am

Problem was I stupidly did not set the target platform in Visual Studio to x86. Doing so solved this issue.

Post Reply

Return to “Series 3700 Switch System/Multimeter and Plug-In Cards”

Who is online

Users browsing this forum: No registered users and 2 guests