Push button for open tecplot
1 次查看(过去 30 天)
显示 更早的评论
Hello,
I am working on a gui and I want to create a push button for opening tecplot automatically. Using this button i am planning to plot my datas on the tecplot. It will be an export button actually. Can you help me for that?
Thanks in advance.
5 个评论
Image Analyst
2018-9-1
Simply launching a program does not mean it's COM-aware. If the program was not programmed up with COM functionality built-in, then it won't have it. Simply launching it does not give it that COM functionality.
I suggest you do your plotting in MATLAB, or, if you insist on tec360, you'll have do do it manually, or see if you can record and play a macro in tec360.
A possible, but not very convenient, alternative is to use Java robot code from MATLAB to move the mouse around on the screen and click at specified places.
回答(1 个)
dpb
2018-9-1
编辑:dpb
2018-9-1
I haven't used TecPlot in years, but there are quite a lot of things it can do that would be extremely difficult to do in Matlab HG if could manage at all, so can understand the "why" that someone who has it would like to drive it from Matlab.
I looked at the current release documentation and there is no COM-awareness so that route is out. There is, however, a PyTecPlot library so one could use Python and altho I've never used it my understanding is one can use Python from Matlab, so looks like there would be a(n indirect) path there.
TecPlot has a very full-featured scripting language so that, too, could be a possibility.
But, ActiveX is a "no-go" and no way around that.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Call Python from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!