LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Wire enumeration conflict

przemo1526_0-1719928416027.png

przemo1526_1-1719928478927.png

 

0 Kudos
Message 1 of 29
(374 Views)

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.)

0 Kudos
Message 2 of 29
(370 Views)

Did you read the details?

0 Kudos
Message 3 of 29
(369 Views)

Hi przemo,

 

to add to the other answers:

Whenever you work with enums on your frontpanel you should create (and use!) a typedefinition fro them in your project!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 29
(361 Views)

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.

0 Kudos
Message 5 of 29
(355 Views)

Which are three diagram constants ?

0 Kudos
Message 6 of 29
(348 Views)

@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).

 

0 Kudos
Message 7 of 29
(347 Views)

@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?

0 Kudos
Message 8 of 29
(345 Views)

przemo1526_0-1719930410492.png

 

0 Kudos
Message 9 of 29
(338 Views)

This is how was look like before changes made

 

0 Kudos
Message 10 of 29
(335 Views)