question

pc neo avatar image
0 Likes"
pc neo asked pc neo commented

FloWorks chart display 0 for LoadingArm upon 1st stoptime reach

floworks-tut3-sample-issue.fsmI'm attaching Floworks tutorial 3 to illustrate the issue I encounter. The LoadingArm2 chart displaying utilization will show 0 when model stop time set at 1300 is reached.

The interesting phenomenon is that if the model is allow to continue to run, that is click on "run" button after run time 1300 is reached, the chart will show updated value but begins from 0. This seems to behave like "warm up time". Furthermore, setting of future model stop time, say at 3300 again will not get the chart to display 0 for its utilization.

Any suggestion of a workaround for this issue?

FlexSim 19.1.1
FloWorkschartloadingarmmodel stop timestatistics reset
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

·
Mischa Spelt avatar image
1 Like"
Mischa Spelt answered pc neo commented

Hi,

The problem seems to be that in the statistics part of the loading arm's tree, there are both old-style nodes that get converted to a kinetic tracked variable, as well as new-style kinetic tracked variables, which leads to two nodes both trying to track the input:

For some reason FlexSim only gets confused when the model stops, and suddenly starts looking at the other one.

This is a problem that already occurs when creating a Loading Arm so I will fix it in the next bug fix release. For the time being, you can fix it by removing the old-style nodes manually:

Thanks for catching and apologies for the inconvenience!

If you have many loading arms in the model already, you could run the following FlexScript from a Script window to try and fix them all in one go:

forobjecttreeunder(model()) {
	if(isclasstype(a, "FloWorks::LoadingArm")) {
		treenode old_stat = stats(a).first;
		while(objectexists(old_stat) && old_stat.name != "state_current") {
			treenode remove = old_stat;
			old_stat = old_stat.next;
			remove.destroy();
		}
	}
}

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

pc neo avatar image pc neo commented ·

thank you. It works! :)

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.