question

Patrick Zweekhorst avatar image
1 Like"
Patrick Zweekhorst asked Jordan Johnson answered

Track profile of tracked variable with negative value

Hi,

Is there a reason why it is not possible to track the total time a tracked variable is at a certain value if the tracked variable can also have negative values? Attached is a small example model that includes one tracked variable on a token. This tracked variable has both the Track History and the Track Profile check boxes checked. The value of the tracked variable is then set to -1, 0 or 1 and the results are printed in the output console. You can see that after some time the current value of the tracked variable becomes -1, but if you request the total time at the value -1 you still get 0. All the time the tracked variable is at value -1 is logged as time at 0.

Is this by design or a bug? I have also tried the Categorical tracked variable type, this has the same problem.

Thank you for your time,

Patrick

NegativeTrackedVar.fsm

FlexSim 21.2.4
tracked variablesgettotaltimeattrack profile
· 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.

Patrick Zweekhorst avatar image Patrick Zweekhorst commented ·
Hi @Jordan Johnson,

Do you have any clue if someone is able to look at this and to see if this is by design or a bug?

0 Likes 0 ·

1 Answer

·
Jordan Johnson avatar image
0 Likes"
Jordan Johnson answered

I will add this issue to the dev list. It seems like a bug to me. I couldn't get "total time at" a negative value to work, whether I did it through the history or the profile; in fact, the negative value didn't appear in the profile at all.

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.