LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

No coercion using value signaling

Why does no coercion takes place when using the value signaling property?
 
I understood, that LabView will react as if the user had interactively changed the value of the object. Thus, I would also include coercion (and use it for convenience in my project).
 
Please find attached an example VI. Pressing the "Set Numeric to value" allows to exeed the limits of the numeric object "Numeric".
 
Best regards
Jörn
0 Kudos
Message 1 of 6
(3,053 Views)
In addition: It only seems to affect the value signalling an not the value property.
Regards,
André (CLA, CLED)
0 Kudos
Message 2 of 6
(3,047 Views)
Interesting. I also got it to set a value outside the bounds with a local.

Guess it's something we will have to be careful of.

0 Kudos
Message 3 of 6
(3,035 Views)

This behavior is by design.

In the past, the coercion would also work when programmaticaly setting the value, but in more recent versions, the limits only refer to what the user explicitly does. All programmatic access (including the value properties) can be coerced using the In Range and Coerce function.

I suppose this change was made because it gives more power to the user, but I don't know the exact reasoning.


___________________
Try to take over the world!
0 Kudos
Message 4 of 6
(3,032 Views)

That this behavior is by design is not entirely satisfying. I hoped that LabView can do the job "looking after variables to be in range" for me. Using the In Range and Coerce function need some little programming effort for each variable to be controlled. Now it would be interesting to understand the reason for this design.

To André: With LV 8.5 also the value property does not coerce the value.

Regards

Jörn

0 Kudos
Message 5 of 6
(3,026 Views)
It also applies to VI connectors, I thought that was the main reason to make a distinction between a 'user' and 'code'

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 6 of 6
(3,021 Views)