question

Tao WANG avatar image
1 Like"
Tao WANG asked Joerg Vogel commented

Question about Tutorial - Lists and Resources

@Paul Toone

@Alan Zhang

https://answers.flexsim.com/articles/23299/tutorial-lists-and-resources.html

I have followed this tutorial and reproduced a model, everything is ok for the first water break, but thereafter, the operators take a water break after each load-unload-travel back activities. I tried but can't find what's wrong.

Thank you in advance.

FlexSim 17.1.1
process flow pull from listlists and resourcesthirstywater breaks
5 |100000

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

Matt Long avatar image
3 Likes"
Matt Long answered Joerg Vogel commented

There are a couple of issues. First, each of the operators needs a number label on them with the name lastDrinkTotalTravel. Set the value of the label to be 0 and check the box Automatically Reset.

Next, under Step 5 of the Water Breaks section, it says:

Under Assign To enter Label: resource.

Add a label assignment, and under Name, enter lastDrinkTotalTravel. For its Value enter getvarnum(getlabel(token, "resource"), "totaltraveldist").

In your model, you're assigning the label to the token. The current version of FlexSim supports dot syntax so you can actually just type in token.resource rather than Label: resource.


· 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.

Tao WANG avatar image Tao WANG commented ·

Thank you for your reply. It works now.

I remember that I tried to enter Label: resource, while it was automatically corrected to token, maybe i made a spelling error.

Adding a number label on both operators seems not to be necessary, it works without. Label field lastDrinkTotalTravel has been added to resource in Processflow.

0 Likes 0 ·
Alyssa Rock avatar image
2 Likes"
Alyssa Rock answered Alyssa Rock edited

I have an update for all of you! When I opened the original model I used to build the tutorial for screenshots, it worked fine because it was built in 2017.1 But it didn't work when I rebuilt the model from scratch in 2017.2. I've talked to the development team and between 2017.1 and 2017.2, FlexSim changed how SQL queries handle NULL values. What is happening is that since the lastDrinkTotalTravel doesn't already exist on the operators, it returns a NULL value rather than a 0, which means that operators would never get pulled to take a water break. The 2017.1 model worked because it was using legacy code where it changed NULL to 0.

The fix for this is:

  1. Reset the model.
  2. Double-click the Operator to open its properties window.
  3. On the Labels tab, click the Add button to open a menu. Select Add Number Label.
  4. Double click the labelName box and change it to lastDrinkTotalTravel.
  5. Confirm that the label's initial value is set to 0.
  6. Check the Automatically Reset Labels checkbox.
  7. Click the OK button to save the changes and close the properties window.
  8. Repeat this process for the second operator.

I'll add this step to the tutorial and it should be updated when there is a new bug release in the next few weeks.


add.png (26.2 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.

Alyssa Rock avatar image
1 Like"
Alyssa Rock answered Joerg Vogel commented

Hi there, this is FlexSim's technical writer just chiming in really fast to let you know that the version of the manual you linked to is an old version of the manual. The tutorials in the current version of the manual are more up to date and reflect the changes that have been made to the software.

I'd strongly recommend using the in-software version of the manual rather than the outdated version that is available in FlexSim Answers online. To access this version in FlexSim, open the Help menu and select User Manual. There is also a Help icon on the main toolbar that opens the User Manual.

To access the new version of the tutorial you were working on, go to Tutorials, then Process Flow Tutorials, then Tutorial 1 - Using Shared Assets. This tutorial has been expanded to include a brief tutorial about Zones as well.

Just FYI, we're working really hard to make the current version of the manual available online as soon as we possibly can!


help.png (732 B)
· 6
5 |100000

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

Alyssa Rock avatar image Alyssa Rock commented ·

I've downloaded your model and when I open it, it's unfortunately blank. (I tried twice.) But I'm going to redo the whole tutorial myself and see if I run into any problems. I'll keep you updated. It's possible I didn't document a crucial step, so by doing the tutorial myself, I should be able to see if there's problems like that.

0 Likes 0 ·
jing.c avatar image jing.c commented ·

It seems some comments lost. @Jörg Vogel and I had comment under this answer yesterday. But now they are all disappeared. The same things happened in my another answer.

Anyone know what happened? @Ben Wilson

0 Likes 0 ·
Ben Wilson avatar image Ben Wilson ♦♦ jing.c commented ·

@jing.chen,

I think you're just on the wrong post.

Try this one.

0 Likes 0 ·
Ben Wilson avatar image Ben Wilson ♦♦ Ben Wilson ♦♦ commented ·

Or another option - a user typically can delete their own posts. If your post is a child of theirs, it can be deleted when the parent post is deleted.

0 Likes 0 ·
Show more comments