question

CH L avatar image
0 Likes"
CH L asked tannerp answered

Using token label as table name

I've built a simple model which tries to use token label as table name and read a value from the table, but it failed. Pls kindly advise how to make it work. Thanks!

Token-Label-as-Table-Name .fsm

FlexSim 18.2.3
labelflexsim 18.2.3table
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

tannerp avatar image
0 Likes"
tannerp answered CH L commented

@CH L,

I'm not sure why, but the Table class function isn't working in this version. I used a deprecated command, "gettablecell", and it successfully grabbed the table value. In newer versions of FlexSim, you shouldn't have a problem using the Table class with the token label. Maybe a developer could shine more light on this, but for now, I recommend just using the "gettablecell" function. I've updated your model and it should work now. Feel free to comment back with any questions.

token label table name.fsm


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

CH L avatar image CH L commented ·

Yes, it works. Thanks!

0 Likes 0 ·