question

Michael Zabritski avatar image
0 Likes"
Michael Zabritski asked Adrian Haws edited

Daily max time stamp in Dashboard

Is there a way to report the daily maximum time of day that a process occurs in the dashboard? I'd like the value to be the actual time and not relative to the patients time in the model

FlexSim HC 5.1.0
dashboardstimehealthcare hc 5
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Adrian Haws avatar image
1 Like"
Adrian Haws answered

Michael,

I don't know of an easy way to do this with a pre-defined dashboard chart. There may be better ways to accomplish this, but I created a small example model of one method. In the OnExit trigger for the bed I wrote three lines of code to write to a global table. When 24 hours have passed then the model times are written to a new cell.

/**Record Maximum Time*/
int currentDay = (time() / 1440) + 1; //updated every 24 hours (1440 minutes)

double currentTime = time();
settablenum(GlobalTable1, 1, currentDay, currentTime);

Simply define as many columns in the global table as days you'll run the model, and you can easily export the data to Excel to create graphs.


hc-max-time-1.fsm (64.4 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.