Main siteMain site  ForumForum  ForumSearch  Private messageEmail contact  RegisterRegister  Log inLog in 
Topic: ScalarToLogical var input (2nd)
Reply to topic
Author Message
EMebane



Joined: Apr 15, 2019
Posts: 124

PostPosted: Apr 10, 2026 3:26 AM    Post subject: ScalarToLogical var input (2nd)

ScalarToLogical takes a second input, labeled "var". The docs don't describe what it does. Does the element use the var value instead of "The last value in the input buffer" when comparing against the input value?
jarek



Joined: Oct 22, 2007
Posts: 1087

PostPosted: Apr 14, 2026 7:47 PM    Post subject:

The "Var" is the "Threshold value" which can be static (configured in element's properties) or modified dynamically via this input pin.

Yes, the last value is used/set, no synchronization with the first input.
EMebane



Joined: Apr 15, 2019
Posts: 124

PostPosted: Apr 16, 2026 2:30 AM    Post subject:

Please clarify how this element works. My guess is that the Input scalar is compared with the threshold value using the Condition.

Specifically, what does this mean in the Manual?: "The last value in the input buffer is compared with the threshold."

Is "last value" here referring to the input scalar or the previous input scalar the element received?
jarek



Joined: Oct 22, 2007
Posts: 1087

PostPosted: Apr 16, 2026 1:30 PM    Post subject:

Both inputs read only last values, the internal buffer only holds one sample - last one.

This element is not ideal if data stream synchronization is necessary.
Reply to topic