Track profile of tracked variable with negative value

Track profile of tracked variable with negative value

patrick_zweekhorst
Advocate Advocate
55 Views
2 Replies
Message 1 of 3

Track profile of tracked variable with negative value

patrick_zweekhorst
Advocate
Advocate

[ FlexSim 21.2.4 ]

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

Accepted solutions (1)
56 Views
2 Replies
Replies (2)
Message 2 of 3

patrick_zweekhorst
Advocate
Advocate
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
Message 3 of 3

JordanLJohnson
Autodesk
Autodesk
Accepted solution

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.

.


Jordan Johnson
Principal Software Engineer
>

0 Likes