Search the Community
Showing results for tags 'persistent'.
Found 1 result
BallardHill posted a topic in Screen Components and User InterfaceOur application collects load cell data from multiple sensor channels, offsets and scales it, then displays the maximum pound force to date in a Variable Value Component named AllStrapsMax. The data is processed in this Sequence: (((max(StrapLeftHead[0h, systime()]) - 1.250) / (0.00375375 * 201)) + ((max(StrapLeftShoulder[0h,systime()]) - 1.250) / (.003928 * 201)) + ((max(StrapLeftHip[0h,systime()]) - 1.250) / (0.003969 * 201)) + ((max(StrapLeftKnee[0h,systime()]) - 1.250) / (0.00394988 * 201))) * 1000 (Yes, the constant calculations could be pre-calculated to increase efficiency.) The displayed maximum value reverts to a lower LBF once the peak data has passed through the channel histories, whereas we need that maximum to persist in another Variable Value Component (MaxPersistent) until some Control action occurs, such as clearing the Log. We need some way to conditionally copy the AllStrapsMax value to MaxPersistent (perhaps using the evaluate(component.myComponent.strExpression) technique you educated me about a year ago), but this needs to trigger each time the AllStrapsMax value changes, or at worst after each set of channel samples. Can you provide some guidance?