question

yesid anacona avatar image
0 Likes"
yesid anacona asked Ryan Clark commented

How can I put some type of statistical distribution data?

table-globe-zenu.fsm

I need to put a distribution ESTADISTCA to to each data in the table (for example the product type "A" passing by the machine "MAQ 1" has a distribution normal(0.16, 0.01, 0) Thank you.

Choose One
global tabledistributions
captura.jpg (41.9 KiB)
table-globe-zenu.fsm (123.0 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.

1 Answer

Arun Kr avatar image
2 Likes"
Arun Kr answered Ryan Clark commented

Hi @yesid anacona ,

You can convert the global table data as string and write distribution inside the table cell.

Then you execute the string from the global table using executestring() command for the process time.

Pls see the attached model. I have created two item types in the model corresponding to A & B part types in your problem. A global variable is used to select the row from the global table based on the part. On exit trigger of the Queue has the logic for selecting the row. Finally under the process time code edit field you can see the command for accessing table string.

Table Data = reftable("GlobalTable1");
return executestring(Data[RowNumber][1]);

Regards,

Arun KR string-in-global-table.fsm


snip.png (7.9 KiB)
· 4
5 |100000

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

Talia Z avatar image Talia Z commented ·

@Arun KR Hi Arun! Would you mind sharing how to repeat this code in version 18? I believe the second line of this code produces an error in the updated version.

Table Data = reftable("GlobalTable1");
return executestring(Data[RowNumber][1]);
0 Likes 0 ·
Arun Kr avatar image Arun Kr Talia Z commented ·
Table Data = reftable("GlobalTable1");
return Data.executeCell(RowNumber,1);
1 Like 1 ·
Claudia P3 avatar image Claudia P3 commented ·

Hi Arun, your answer was really helpful. It is posible to do the same but with an empirical distribution?

0 Likes 0 ·
Ryan Clark avatar image Ryan Clark Claudia P3 commented ·
Hi @Claudia P3,

Would you mind reposting this comment as a new question? That's helpful in terms of organization on this forum. Thanks!

0 Likes 0 ·