question

Carlos Q10 avatar image
0 Likes"
Carlos Q10 asked Carlos Q10 commented

Change process time through global table

SMT L102B Harman_1.fsmI have a question. I try to change the process time for a processor in base a global table using a label "Models" as reference in relation with the same reference in the row header from the global table, but i can't achieve working.


1698340879621.png


Thanks.

FlexSim 16.1.2
global tableprocesstime
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Carlos Q10, was Julio R's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

Julio R avatar image
0 Likes"
Julio R answered Carlos Q10 commented

Hello @Carlos Q10 ,

The problem is that your label´s value is a integer, so with that option is trying to get the value of the label (Model = 5790 is looking for row 5790, that does not exist, since your table has only 13 rows).

What you can do is convert the label value to a string, either on the source or on the reference. For example, on the column reference you should use numtostring(getlabel(item, Models)).

This may not work on older versions since I believe the feature to make a row reference by the row header was not implemented in older versions.

· 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.

Joerg Vogel avatar image Joerg Vogel commented ·
@Carlos Q10 , you can edit rows header names in such a way, that they are always a string. You add at a first character that is definitely not a number.

Typically you would choose an underscore character.

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Joerg Vogel commented ·

My preference is a colon or pound #.

0 Likes 0 ·
Carlos Q10 avatar image Carlos Q10 commented ·

Thank you so much to everyone this help me, but I don't have time to answer it.

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Carlos Q10 commented ·
Answer what?
0 Likes 0 ·