AnsweredAssumed Answered

Problem with IArrayTransfer

Question asked by AndrewIsaverdian on Mar 26, 2011
Latest reply on Apr 4, 2011 by acannon
I am using PNA-L N5230C, PC with Windows 7, 64-bit, DCOM type library from PNAProxy A.09.31.07 (latest) 
What is wrong with this code (VB.NET, NET 3.5):

Dim pna As AgilentPNA835x.Application
Dim measData As AgilentPNA835x.IArrayTransfer

Dim t As Type = Type.GetTypeFromProgID("AgilentPNA835x.Application", "pna name", True)
pna = Activator.CreateInstance(t)
measData = CType(pna.ActiveMeasurement, AgilentPNA835x.IArrayTransfer)

The last line raises exception (see attachment) "COM cast failed due to .... CLASS is not registered". At the same time getData works, although naDataFormat_LogMag setting does not give you Log data  

Outcomes