Cancel
Showing results for 
Search instead for 
Did you mean: 

Run a Tecnomatix model using Matlab code

Solution Partner Creator Solution Partner Creator
Solution Partner Creator
I want to know the following:
 
Is it possible to run a Tecnomatix model using Matlab code? And if it is, can you supply me with that code?
 
I have been struggling to find a way to do so. What I have accomplished is to open a Tecnomatix model by using the !<ModelName>.spp command in Matlab. But this only opens the model and doesn't run the model. 
 
Any help will be appreciated.
5 REPLIES 5

Re: Run a Tecnomatix model using Matlab code

Siemens Phenom Siemens Phenom
Siemens Phenom

See this thread: http://community.plm.automation.siemens.com/t5/Plant-Simulation-Forum/Running-a-Tecnomatix-Model-usi...

Regards,

Ralf
------------------------------------------------------------------------------------------------------
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution.

Re: Run a Tecnomatix model using Matlab code

Siemens Phenom Siemens Phenom
Siemens Phenom

HellocMcdonald ,

 

there are 2 possibilities:

  1. Start Plant Simulation by

PlantSimulation12.exe – f myModelfile.spp –m .Models.mySimulation

 

  1. Prepare a method with the name autoexec with code like

 .Models.mySimulation.Eventcontroller.reset;

 .Models.mySimulation.Eventcontroller.start;

 

Regards,

Peter

Re: Run a Tecnomatix model using Matlab code

Creator
Creator

Hi Peter

 

I am trying your second option. I have created the autoexec method, but it doesn't seem to work. Is there a library which i maybe need to add (or tick)?  

Re: Run a Tecnomatix model using Matlab code

Siemens Phenom Siemens Phenom
Siemens Phenom

The autoexec method must be a class with the name autoexec.

_________________________________________________________________
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution.

Re: Run a Tecnomatix model using Matlab code

Creator
Creator
Thank you! got it!