Showing results for 
Search instead for 
Do you mean 
Reply

Real-time simulation data upating in plant simulation

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

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

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

[ Edited ]

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

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?

 

[NEW] Challenge us at the Plant Simulation World User Conference 2017. Share your question or idea here!
Gert Nomden
Senior Consultant | Tecnomatix Product Manager
cardsplmsolutions.com

Re: Real-time simulation data upating in plant simulation

[ Edited ]

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

Thank you for your comments.