How can I put some type of statistical distribution data?

How can I put some type of statistical distribution data?

yesid_anacona
Not applicable
183 Views
5 Replies
Message 1 of 6

How can I put some type of statistical distribution data?

yesid_anacona
Not applicable

table-globe-zenu.fsm

5692-captura.jpg

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.

0 Likes
Accepted solutions (1)
184 Views
5 Replies
Replies (5)
Message 2 of 6

arunTTT2P
Advocate
Advocate
Accepted solution

Hi @yesid anacona ,

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

5700-snip.png

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

Message 3 of 6

talia_z
Not applicable

@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
Message 4 of 6

arunTTT2P
Advocate
Advocate
Table Data = reftable("GlobalTable1");
return Data.executeCell(RowNumber,1);
Message 5 of 6

claudia_p3
Not applicable

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

0 Likes
Message 6 of 6

ryan_c10
Not applicable
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