From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

resgister for event on multiple boolean refs

Solved!
Go to solution

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 15
(3,963 Views)

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 15
(3,945 Views)

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 15
(3,937 Views)

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

0 Kudos
Message 4 of 15
(3,933 Views)

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 15
(3,895 Views)

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 15
(3,893 Views)

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 15
(3,890 Views)

> 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 15
(3,874 Views)

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 15
(3,861 Views)

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 15
(3,844 Views)