COM Object needs to be initialized properly

2 ビュー (過去 30 日間)
Sarah Crimi
Sarah Crimi 2018 年 8 月 28 日
コメント済み: Sarah Crimi 2019 年 1 月 28 日
I am connecting to a COM object (Bode Analyzer 100 from Omicron). However, since I am making a GUI, I need to initialize these variables to be empty so that I can pass them from function to function. However when I do, matlab complains that they are not the right type of variable. What type is this?
These are the 3 commands I use:
automationInterface = actxserver('OmicronLab.VectorNetworkAnalysis.AutomationInterface')
bode = automationInterface.Connect();
OnePortMeasurement=bode.Impedance.CreateOnePortMeasurement;
Thanks, Sarah
  6 件のコメント
sandeep singh
sandeep singh 2018 年 11 月 26 日
Hello
Even i am trying to connect, but i want to know whether it is connected using serial com port
Sarah Crimi
Sarah Crimi 2019 年 1 月 28 日
Hello,
I connected using COM port.
I actually had to make a button that properly turned off the COM port. So, when the x is used, it still throws an error. But when I use the button to turn off the GUI, I can turn it on again. If I stop a test early, I still have to reboot matlab.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeUse COM Objects in MATLAB についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by