AnsweredAssumed Answered

PLTS AFR COM Automation

Question asked by Stephen_Smith on Sep 10, 2019

I am attempting to automate the AFR de-embedding process, through the PLTS COM interface.  For reference, I am using .NET in Visual Studio.  I can successfully execute certain commands (such as plts.ImportData(), plts.ImportFile(), etc.), but when using the plts.Afr() command, nothing happens.  Furthermore, using the plts.GetLastError() command afterward returns "no logged error."  My code is as follows:

 

[Start of code]

Dim pltsapp As Object = CreateObject("PLTS.Application")

System.Threading.Thread.Sleep(1000)
pltsapp.ShowWindow(3)

 

Dim xmlSettings As XElement = _
<AfrApiArgs>
    <Thru filePath="C:\Users\stephena\Documents\2xThru_50ohm.s2p"/>
    <FixtureA1 filePath="C:\Users\stephena\Documents\Fixture_50ohm_1.s2p"/>
    <FixtureB1 filePath="C:\Users\stephena\Documents\Fixture_50ohm_2.s2p"/>
</AfrApiArgs>

 

pltsapp.Afr(xmlSettings.ToString())

[End of code]

 

Does anyone have experience with AFR COM automation, or have insights (e.g. debugging tips) that could help resolve this issue?

 

Thanks,

Stephen

Outcomes