SelectTreeItem error and MATLAB/CST gain discrepancy (COM interface, CST 2025)
0 Comments
Answers (1)
1 Comment
Hi @Khadijah,
I could be wrong but it seems like the main issue might be with either tree item referencing or unit mismatch in the gain calculation. Based on my experience by listing the available tree items and making sure you’re referencing the correct one, you should be able to fix the SelectTreeItem issue. To debug, you can list all available tree items and verify that you're referencing the correct path for the Farfield data. Use the following MATLAB command to retrieve the tree item names:
treeItems = mws.GetTreeItemNames(); % List all tree items disp(treeItems); % Display the tree items to verify the correct path
Once you confirm the correct path, use it directly with SelectTreeItem. For instance, if your tree item path is 'Farfields\\Farfield3.5 [1]', ensure there are no extra spaces or incorrect characters.
Also, remember to account for gain in dB and consider how CST is calculating Total Gain versus Realized Gain.
Hope this helps.
See Also
Categories
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!