question

Pranav Purohit avatar image
0 Likes"
Pranav Purohit asked Pranav Purohit commented

How to use 'Up' in the label value

Hello All,

I want the label to read the value of width and length from input table for every particular module that is created.

I read about the 'up' logic in Label value.

If that will help me here, please help me with how to use it.

Also any other suggestions that would work better for the logic are welcome.

Thanks,

Pranav

FlexSim 16.2.2
logic
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

·
Kari Payton avatar image
0 Likes"
Kari Payton answered Pranav Purohit commented

Hi @Pranav Purohit. From my understanding the up command references the parent node for child tokens. If you want to read the values from a table you can use the command gettablenum("table name", row number, column number).

· 3
5 |100000

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

Pranav Purohit avatar image Pranav Purohit commented ·

Thank you very much for your response.

This is exactly what I need. But the above logic will return value for particular cell. My model input has 170 rows and token should read the label value one by one as row proceeds. Is there any other code that might be useful?

0 Likes 0 ·
Kari Payton avatar image Kari Payton Pranav Purohit commented ·

@Pranav Purohit are you able to post an example?

0 Likes 0 ·
Pranav Purohit avatar image Pranav Purohit Kari Payton commented ·

@Kari Payton Sorry for my delayed response.

I will try. I am working on logistics project. Model has provided input through global tables and in total there are 170 flowitems. Input table has different values of length, width, height, item number etc to flowitem. Whenever token passes, I want to assign it the respective cell's value of length, width and height.

For now, I did it in writing FlexScript but I was checking if there any other easy way to do that.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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