BarGauge Syntax Error: Individual process progress vs. Total accumulated time

41 views
Skip to first unread message

WILLIAN SATOSHI YAMAUTI

unread,
May 22, 2026, 7:32:14 PM (12 days ago) May 22
to JaamSim Users Discussion Group

Hi everyone,

I'm trying to implement a BarGauge to visualize the progress of each individual entity being processed by an EntityProcessor, rather than the cumulative 'WorkingTime'.

I've tried several expressions in the DataSource field, but I keep encountering syntax errors such as:

  • 'Left operand must be a number'

  • 'Invalid unit returned by an expression (Received: TimeUnit, expected: DimensionlessUnit)'

Currently, the only expression that didn't return an error was [EntityProcessor1].WorkingTime / [EntityProcessor1].ServiceTime, but this shows the overall simulation progress instead of resetting for each new entity.

I have already tried converting units (e.g., ... / 1[s]), but the 'left operand' error persists. My ServiceTime is set to 10 s.

What is the correct syntax to calculate the progress of the current entity only?

Thanks in advance!"

Captura de tela de 2026-05-22 20-31-21.png

Lorenzo Ferro

unread,
May 24, 2026, 1:41:32 AM (11 days ago) May 24
to WILLIAN SATOSHI YAMAUTI, JaamSim Users Discussion Group
Hello Willian,

For your logic do you strictly need EntityProcessors or can you also use Servers? In the second case you would find the property FractionCompleted. See attachment.

Lorenzo

Este e-mail foi enviado por um ALUNO da Universidade Federal de Ouro Preto e não reflete a posição da Instituição.

--
You received this message because you are subscribed to the Google Groups "JaamSim Users Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jaamsim-user...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/jaamsim-users/968cdba3-6604-472d-b086-7309d9563b61n%40googlegroups.com.
Server+BarGauge.cfg

Lorenzo Ferro

unread,
May 24, 2026, 4:01:20 AM (11 days ago) May 24
to WILLIAN SATOSHI YAMAUTI, JaamSim Users Discussion Group
Hello Willian,

in case you really need an EntityProcessor to process multiple Entities in parallel, you achieve an array of entity RemainingTimes that depends on the Capacity setting, so you cannot show all of them in a single BarGauge.
In the attached file I tried to use two bar gauges, in the case Capacity=2, to show the progress of single entities.

I'm not fully satisfied because I could not associate one bargauge with an entity name, but instead the two bar gauges are associated to position 1 and position 2 of the array, so whet the array dynamically changes the number of entities processed for example from 2 to 1 the second entity becomes the first and se second bar gauges stops working and passes the job to the first one.

It's just a provisional result but maybe someone else in the Group can fix it.

Lorenzo
EntityProcessor+BarGauges.cfg

WILLIAN SATOSHI YAMAUTI

unread,
May 27, 2026, 6:31:47 PM (7 days ago) May 27
to JaamSim Users Discussion Group
Hi Lorenzo how's it been?

In my case , i 'm working on a load roller factory manufacturing plant simulation for a university course on simulation. I would like to sincerely thank you for your help and for being so available to guide us. The proposed solution offers a level of technical sophistication that goes beyond what we had initially developed, and it will be fundamental to the success of our load roller factory simulation project. 

Understanding that the EntityProcessor works with arrays was the turning point for us to fix the syntax errors we were facing. I am going to share this approach with my professor and the rest of the class so we can discuss it and reach a definitive solution for our model.

Best regards
Reply all
Reply to author
Forward
0 new messages