# question

0 Likes"

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

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

·
2 Likes"

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

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

·

@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 ·
Talia Z ·
```Table Data = reftable("GlobalTable1");
return Data.executeCell(RowNumber,1);```
1 Like 1 ·
·

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

0 Likes 0 ·
Claudia P3 ·
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 ·