Push button for open tecplot

조회 수: 2 (최근 30일)
HSukas
HSukas 2018년 8월 31일
편집: dpb 2018년 9월 1일
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
HSukas
HSukas 2018년 9월 1일
I used that code and tecplot is open.
status = system ('C:\Program Files\Tecplot\Tecplot 360 EX 2016 R2\bin\tec360.exe')
But i want to plot my datas ,which i obtain in matlab, in tecplot automatically. Is there any way to do this?
Image Analyst
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
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.

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by