From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-02-2024 08:55 AM
07-02-2024 08:59 AM - edited 07-02-2024 09:00 AM
Your enum diagram constants are different, as the error message says.
Delete the three diagram constants and do a "right-click... create constant" for each property node to get the correct enum.
(Overall, your code "smells" bad. Can you show the rest? Most likely the use of value property nodes is inefficient and convoluted here.)
07-02-2024 08:59 AM
Did you read the details?
07-02-2024 09:03 AM
07-02-2024 09:07 AM
Either do as altenbach or create a typedef if this is the same enum you are intending to use in multiple places.
You currently have a type mismatch, and if you don't manage the enum using a typedef then this will continue to happen every time that you modify the list of values for a control.
07-02-2024 09:14 AM
Which are three diagram constants ?
07-02-2024 09:15 AM
@altenbach wrote:
(Overall, your code "smells" bad. Can you show the rest? Most likely the use of value property nodes is inefficient and convoluted here.)
If all three value property nodes refer to the same control/indicator (assuming you don't have several with the same label!!!), only the last one written will win, but depending on where else it is read you could get unpredictable race conditions. All you need is a selector based on the two booleans to select the appropriate value and write it to a local variable (Or the terminal if this is an indicator).
07-02-2024 09:17 AM - edited 07-02-2024 09:18 AM
@przemo1526 wrote:
Which are three diagram constants ?
Maybe you should start with a few basic tutorials. You have three diagram constant wired to three instances of value property nodes. Right?
Why don't you attach your VI so we can give more specific advice?
07-02-2024 09:26 AM
07-02-2024 09:30 AM
This is how was look like before changes made