question

Ignasi P avatar image
0 Likes"
Ignasi P asked Ignasi P commented

How to create a variable that I can modify and plot like the trackedV WIP?

Hi,

I am working in a Model for FlexSim, I am definetly not an expert on it but I'm racking my brain trying to create a variable similar to the tracked variable workinprogress but only from a certain point, and then being able to modify it and plot it in the dashboard the same way I can plot the predifined tracked variable workinprogress.

graphworkinprogress.jpg

Here is an image of my model.

modelcapture.jpg

In other words, I want to create a variable that shows the number of flowitems that have gone throught PEP point, and then reduce it 1 by 1 untill 0 once they are stored in one of the several racks I've created. And then I want to follow that variable in my dashboard the same way I can follow the workinprogress variable.

Thanks a lot in advance, would be really helpful if someone can help me out.

port-model-questions-asked.fsm

FlexSim 18.1.2
FlexSim 17.2.5
simulationtracked variablesdashboard displaytracked variablevariable declaration
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

·
Steven Hamoen avatar image
0 Likes"
Steven Hamoen answered Ignasi P commented

@Ignasi P You can create a new tracked variable, call it what ever you want and then update its value when it has gone through the PEP point and when it enters a rack.

Creating a tracked variable can be done in the Toolbox by right clicking on the Tracked Variables and selecting: "Add Tracked Variable". Setting the value can be done on the entry triggers by using the option: Data -> Set Tracked Variable or by simply writing a code snippet and setting the new value.

· 3
5 |100000

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

Ignasi P avatar image Ignasi P commented ·

@steven.hamoen Thanks a lot for your quick answer. Maybe it is because I have the free version since I am still waiting for my licence, but I do not have the option to create a tracked variable from the ToolBox. Here is an image where you can appreciate that.

I tried to create the variable throught a trigger but it appears an error on the code. I belive that if I am able to create it I can modify it by increase or decrease variable value using the trigger option on my PEP buffer. Thanks a lot!

0 Likes 0 ·
captura.jpg (136.3 KiB)
Steven Hamoen avatar image Steven Hamoen Ignasi P commented ·

@Ignasi P Yes the free version doesn't give you access to the tracked variable and it might also not possible to create them in a trigger. ( I have not tested it but expect that it doesn't work)

0 Likes 0 ·
Ignasi P avatar image Ignasi P Steven Hamoen commented ·

@steven.hamoen Ok Steven, thanks a lot anyway. My company will give me a licence in the few days so I might ask again. Thanks for your time.

0 Likes 0 ·

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.