question

anon-user avatar image
0 Likes"
anon-user asked Allister Wilson edited

settings automatically from the global table

Rewriting the properties of each object one by one is very time-consuming.
Is it possible to set the automatic search for the current processor in the global table?



FlexSim 19.0.5
global tablepropertiesflexsim 19.0.5
5 |100000

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

Allister Wilson avatar image
1 Like"
Allister Wilson answered Allister Wilson edited

If you're just hoping to use the exact same code in the Process Time field of every processor, you can use current.name in the Row field, it will read from the table row whose row header matches the name of the processor, which seems to already be setup correctly in your model.

You can then use View / Edit Selected Objects to copy the process time field (the cycletime variable) to all your other processors.


1588426807297.png (8.4 KiB)
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
0 Likes"
Joerg Vogel answered

As I have written there is not this feature available in your version.

You can add at each processor a label which value is a row number of your tables to update the parameters. You write a script whether in an OnReset trigger to test if an update is necessary, or by a script in a script console. Then you read the row value from the processor to update and transfer the data to your chosen processor.

If you don’t want to have a label at each processor you can add another table which contains columns of pointer data to the processor and row numbers to your update tables.

If you want to use a list you push the row number for the update table and as an list argument the processor pointer [node, treenode data] or name as a string. Then you can query the row value for the processor to update by looking for the processor.

If you keep all data for a processor in the same row number in your tables, you need to keep only one value for a processor up to date.

The following procedure is recommended, if you are familiar with JOIN SQL clauses and each your tables for updates have a common column to identify the processor, you can collect the data by a Table query and joining the tables.

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
0 Likes"
Joerg Vogel answered

Yes, in FlexSim 20.1: Release Notes: Added a Find/Replace UI for global tables.

5 |100000

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

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.