I have a label that is showing number of employees at the line that can change by minute, and I have a timer that is set for the line leader to toggle when they are actively producing at the line as we have multiple break times etc. When they toggle that they are at the line producing that initiates a timer, and what I’m trying to get done is to have a “Total Employee Count” event that I’ll use to average out the amount of employees on the line by minute for the entire day. I have this scripted on the actionPerformed on the timer itself:
v = event.source.value
e = event.source.parent.getComponent(‘EmployeeNum’).intValue
c = event.source.parent.getComponent(‘PPMHNum 4’).floatValue
c = c+e
It’s not working, but I don’t know why. Could any of you fine people help me out? Thank you!