question

Craig DIckson avatar image
0 Likes"
Craig DIckson asked Adrian Haws edited

Experimenter and global variables?

I just did a set of scenarios where each one was for a different value of a global variable. However each of the runs appeared to use the original value of the variable, not the scenario value, so each run gave identical results. I changed the model to use a global table with one cell instead, and did get different results for each scenario, as expected.

Is this a bug, or is there a reason a global variable doesn't work with experimenter?

Thanks,

Craig

FlexSim 16.2.0
experimenter
· 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.

Sam Stubbs avatar image Sam Stubbs ♦ commented ·

That's interesting. I just created a small example that uses a global variable, and it seemed to work for me. Do you have an example of the model? We could take a look at it and see what might be the issue?

0 Likes 0 ·
Craig DIckson avatar image Craig DIckson commented ·

@Sam Stubbs - Could you replicate the problem using my sample models?

0 Likes 0 ·

1 Answer

·
Adrian Haws avatar image
0 Likes"
Adrian Haws answered Adrian Haws edited

Craig,

The problem was that your scenarios were referencing the global variable itself, as opposed to the data that it's set to. You should select the "Data" node under the global variable in the treenode. When I made the change the results from the experimenter were correct.

· 2
5 |100000

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

Craig DIckson avatar image Craig DIckson commented ·

Adrian, were you able to make it work by doing that? I actually tried it both ways -typing the name and sampling it - and I did not see a difference.Thanks

Craig

0 Likes 0 ·
Adrian Haws avatar image Adrian Haws Craig DIckson commented ·

I apologize, you need to select it in the options. It should look like:

MODEL:/Tools/GlobalVariables/vAverageDelay/Data

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.