INPUT ERROR with TEXT object on JAAMSIM 2016-18 and 2016-17

134 views
Skip to first unread message

Gonzalo E. Castillo F.

unread,
Sep 9, 2016, 8:18:53 AM9/9/16
to jaamsi...@googlegroups.com

Hi Harry and Harvey,

I have been trying JAAMSIM (version 2016-15 and then 2016-16, windows and java jar) for a few weeks, and I think it is a GREAT tool, thank you for it.

I noticed that an INPUT ERROR appeared with the TEXT objects of my model when I tried version 2016-17 (and 2016-18).

I tried my model on version 2016-15 and 2016-16 and things went well. The model has several TEXT objects to show some values that are originated in ASSIGN objects. 

The values are referenced using DATA SOURCE field in a TEXT object (some with a reference to a field, some with formulas with reference to a field)

It worked fine on version 2016-15 and 2016-16 but when I switched to 2016-17 (and 2016-18) the error was shown.

To isolate the cause of the error, I used a copy of 'InputValue Example.cfg' with minor changes (an ASSIGN object was added) and the error appeared.

Below I try to explain (a copy of the file is attached):

If there is a reference in DATA SOURCE field, the error is not shown:

Assign1 object:
ATRIBUTEDEFINITIONLIST: {  LabelA  0  }
ATRIBUTEASSIGNMENTLIST: {  'this.LabelA = 1 '  }

Text1 object:
FORMAT field: 'Time between Arrivals =   %.0f s'
UNITTYPE field: DimensionlessUnit
DATA SOURCE field: [Assign1].LabelA


Nonetheless, if there is a formula in DATA SOURCE, the error is not shown:

Text1_Copy1 object:
FORMAT field: 'Time between Arrivals =   %.0f s'
DATA SOURCE field: '[Assign1].LabelA * 1'


Attached the cfg file.


When the same cfg file is run with JAAMSIM 2016-16, no error is shown. Maybe a bug?


Regards,

Gonzalo Castillo

InputValue Example Input Error on 2016-18.cfg

Harry King

unread,
Sep 9, 2016, 1:48:06 PM9/9/16
to Jaamsim Users Discussion Group
Gonzalo,

This looks like a bug that we introduced when the expression system was expanded to handle strings and entities as well as numbers. We will get it fixed in the next release (2016-19).

Thanks for reporting it.

Harry

Harry King

unread,
Oct 5, 2016, 2:20:08 PM10/5/16
to Jaamsim Users Discussion Group
Gonzalo,

This bug has been fixed in release 2016-19.

Harry

Gonzalo Castillo

unread,
Oct 13, 2016, 4:10:59 PM10/13/16
to Jaamsim Users Discussion Group
Hi Harry,

I have just tested it. It works great.

Thanks,

Gonzalo
Reply all
Reply to author
Forward
0 new messages