cancel
Showing results for 
Search instead for 
Did you mean: 

Real-time simulation data upating in plant simulation

Valued Contributor
Valued Contributor

Hi All,

 

I would like to get your comments regarding real time simulation modeling.

I am using excel to import/export data from plant simulation with simulation event time clock.

 Can you advice me, How can I use real time instead of simulation event clock for real data updating?

Any example would be much appreciate it!

 

Thank you!

 

6 REPLIES

Re: Real-time simulation data upating in plant simulation

Legend
Legend

Interesting!
What application are you using PS for?

You can try the method Sleep() to create a real-time timer.

Re: Real-time simulation data upating in plant simulation

Valued Contributor
Valued Contributor

Thank you for your reply.

I am using plant simulation for real time production line. How to coodinate between real time and event time clock in PS during Simulation?

I do want to data updating (importing and exporting data)using Excel DB regulary such as every 4 hours and simulation should be triggered.. any advice?

 

Thank you, 

Re: Real-time simulation data upating in plant simulation

Legend
Legend

Didn't sleep work?

I thought something like

 

is

do

    sleep(4:00:00,false);

    UpdateData;
    self.methcall(0);

end;

 

UpdateData should be another method where you import the data you need.

Re: Real-time simulation data upating in plant simulation

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

If you want to trigger Plant Simulation from an external application, you can use the COM-interface. Check the Help-pages for more details.

 

Your description is not entirely clear, but it seems you want to run a simulation model with updated data at a certain real-time interval. The simulation itself should probably run in a fast-forward mode, to provide a short-term prediction. Correct?

 


Gert Nomden
Senior Consultant | Tecnomatix Product Manager
cardsplmsolutions.com

Re: Real-time simulation data upating in plant simulation

Valued Contributor
Valued Contributor

Thank you for your reply.
I am looking into COM interface at help pages. Its very helpful for my modelling.
But data importing from Excel takes time when I use COM interface..

 

Re: Real-time simulation data upating in plant simulation

Valued Contributor
Valued Contributor
Thank you for your comments.