i have a project where i need to use physical properties from DWSIM in excel or csv. i need to run dynamic simulation on DWSIM and to export required physcial properties from DWSIM to excel or csv online and updating this data at a specific update rate. any help for python script for this kind of data flow will be highly appreciated! Thank you
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You can use the Timer class from the .NET Framework to execute a function at a specified interval:
fromSystemimportString# https://docs.microsoft.com/en-US/dotnet/api/system.timers.timer?view=netframework-4.8fromSystem.TimersimportTimertimer=Timer()timer.Interval=2000count=0defElapsedHandler(s,e):globalcount,timercount+=1print(String.Format("The Elapsed event was raised at {0:HH:mm:ss.fff}",e.SignalTime))ifcount>4:timer.Stop()timer.Elapsed+=ElapsedHandlertimer.Enabled=Truetimer.Start()
For Excel usage, see the Dynamic Simulation tutorial on the website.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i have a project where i need to use physical properties from DWSIM in excel or csv. i need to run dynamic simulation on DWSIM and to export required physcial properties from DWSIM to excel or csv online and updating this data at a specific update rate. any help for python script for this kind of data flow will be highly appreciated! Thank you
You can use the Timer class from the .NET Framework to execute a function at a specified interval:
For Excel usage, see the Dynamic Simulation tutorial on the website.