question

David VC avatar image
0 Likes"
David VC asked David VC commented

copy globaltable to proces flow: schedule source using flexscript

Hi

I want to do the same thing as the below but now for a schedule source in process flow. I was thinking about importing my excel sheet as a globaltable and then copy this to my schedule source. Can this be done or is there a better way? I don't want to copy paste manually as the purpose is to use my model in the experimenter and thus it should only rely on the given globalvariables and the copying should also be done in the code.

excelopen("FileName.xlsx");//ie "C:/Users/user/Documents/Book1.xlsx"
excelsetsheet("Sheet"+numtostring(Sheet));//Global Variable named Sheet
excelimporttable("GlobalTable1",num_startRow,num_startCol,num_Rows,num_Cols);
excelclose(0);

best regards

David

FlexSim 18.2.2
excel importcopy globaltableprocess flow schedule source
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

Joshua S avatar image
1 Like"
Joshua S answered David VC commented

Here's a way you can integrate your changing scenarios with your scheduled source. This creates a token for every row in your table, then assigns all the labels that would be found in your table to the token, and even sets a delay for the time you would normally set for arrival time. process-flow-scheduled-source.fsm


· 1
5 |100000

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

David VC avatar image David VC commented ·

Thanks a lot!

0 Likes 0 ·