LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

resgister for event on multiple boolean refs

Solved!
Go to solution
Highlighted

Hi all,

Can anyone explain the broken wire in the attached vi?

LV2014SP1 64b

2016-11-01_194744.png

 

It seems that LabVIEW won't accept to register a value change event on a cluster containing more than 1 boolean control ref, unless there is also a non boolean control ref in the cluster.

 

Weird, no?

 


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 1 of 14
(1,627 Views)
Highlighted

I was able to duplicate on LV 2015 32 bit.

 

Also, it seems to have something to do with the order of the cluster.  See:

 

Broken event bundle.PNG

0 Kudos
Message 2 of 14
(1,609 Views)
Highlighted

The Mechanical Action plays a role here.

Change to "switch" rather than "latch" and all variations work.

steve

--------------------------------------------------------------------------------------------------------------------------
Help the forum when you get help. Click the "Solution?" icon on the reply that answers your
question. Give "Kudos" to replies that help.
--------------------------------------------------------------------------------------------------------------------------
0 Kudos
Message 3 of 14
(1,601 Views)
Highlighted

Try adding a cluster to array in the broken case as a work around

0 Kudos
Message 4 of 14
(1,597 Views)
Highlighted

Hi!

 

OEM_Dev seems to be right. Using a build array instead of a build cluster function helps to workaround.

I will look a little closer at the issue and file a CAR if necessary.

 

Regards,

Christoph

Staff Applications Engineer
National Instruments
Certified LabVIEW Developer (CLD), Certified LabVIEW Embedded Systems Developer (CLED)


Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved
Message 5 of 14
(1,559 Views)
Highlighted

Steve,

Shouldn't it work whatever the mechanical action? I think it should.

And :

1 switch : ok

1 latch : ok

1 switch & 1 latch : ok

2 switch & 1 latch : not ok

2 switch & 2 latch : not ok

2 switch & 2 latch & 1 num : ok

 2016-11-02_090224.png

 


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 6 of 14
(1,557 Views)
Highlighted

Christoph,

Replacing the build cluster with a build array confuses me... how do I do then to set my event structure to catch each separate value change?

2016-11-02_090702.png


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 7 of 14
(1,554 Views)
Highlighted

> Steve,

> Shouldn't it work whatever the mechanical action? I think it should.

 

Agreed. I just wanted to add a data point for investigators.

steve

--------------------------------------------------------------------------------------------------------------------------
Help the forum when you get help. Click the "Solution?" icon on the reply that answers your
question. Give "Kudos" to replies that help.
--------------------------------------------------------------------------------------------------------------------------
0 Kudos
Message 8 of 14
(1,538 Views)
Highlighted

I don't use dynamic events much, but my understanding was that either an array or a cluster would be used to run a single event frame when the specified event happens on any of the specified controls.

0 Kudos
Message 9 of 14
(1,525 Views)
Highlighted

Use the "CtlRef" output inside the structure to find out which one was pressed.  Here I use a "Search 1D array" to find the index, but you could also get the label text or use any other property node you feel like.

 

Register array of buttons.png

Message 10 of 14
(1,508 Views)