Adjust the copied processor's processtime.

Adjust the copied processor's processtime.

s1125413
Enthusiast Enthusiast
71 Views
3 Replies
Message 1 of 4

Adjust the copied processor's processtime.

s1125413
Enthusiast
Enthusiast

Hello FlexSim community and @joerg_vogel_HsH and @moehlmann_fe !

 

Now I can produce the processor  and output the information to GlobalTable about the processtime of processor by press the button. But the core logic is copied the exist Processor, so it can't adjust the Globaltable value to change the copied processor' processtime, because it doesn't have the relationship between the them.Is any method to do that?

 

Thank you in advance for your help and idea.

 

0 Likes
Accepted solutions (1)
72 Views
3 Replies
Replies (3)
Message 2 of 4

moehlmann_fe
Enthusiast
Enthusiast

The process time code is technically just a string that is stored in a treenode and can be edited as such. But I think it would be easier to make the code read the row/column (possibly even table name) from labels on the processor. Then you can just change the label values on the copied object.

0 Likes
Message 3 of 4

s1125413
Enthusiast
Enthusiast

@moehlmann_fe 

Just as you mentioned, in the beginning, the model does not generate information about the objects because they do not exist initially. After I generate them, the output processing time for the generated machines is purely output information, and as you said, there is no two-way bridge.

I am very interested in your suggestion, but I am still a bit unclear. Would it be possible for you to provide me with a reference model for me to look into? Thank you."

0 Likes
Message 4 of 4

moehlmann_fe
Enthusiast
Enthusiast
Accepted solution

As a general suggestion, I would put the base "DIP" into a group. Copies of it will automatically be part of the same group. This allows you to know how many copies there are in the model at any time, get references to them based on their index or, vice versa, get their index within the group if you have a pointer to them.

This could for example be used to have each copy use a different row in the processtime table.