LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Linking events on front panel objects

Solved!
Go to solution

I have inherited a project which has a small but stubborn bug in the event handling.

My front panel has two identical clusters labelled 'heatsink' and 'shroud'.

Each cluster contains a numeric control, called 'setpoint', and a Boolean button named 'set'  .

If I type in a setpoint, and hit return, it is supposed to set a click event on the Boolean button.  The problem which I have is that the Heatsink numeric sets an event on the shroud Boolean, rather than its own. 

This is NOT occurring in the LabVIEW code.  I set a break point right at the start of the programme and I could still see this behaviour with the programme paused.

Both clusters are taken from the same typedef. 

Any ideas?

Thanks in advanced, Ian

  

0 Kudos
Message 1 of 6
(2,527 Views)
Solution
Accepted by Barionics

look properties of Button. Look like there are toggle by Return

return.PNG

0 Kudos
Message 2 of 6
(2,505 Views)

It would be so much easier to pinpoint the problem in your code if we had the code available to us, don't you think?  In addition to the code involving the Clusters, we would need the TypeDef.  If (as it should be) the code is part of a LabVIEW Project, the simplest thing would be to compress the folder containing the Project and attach the resulting ZIP file.

 

Bob Schor

0 Kudos
Message 3 of 6
(2,486 Views)

Hello have you tried relabeled one cluster? If you need both control display the same name you can always use the Caption, but internally both controls will be named different.

 

Greetings!!!

Roger Garcia, Certified LabVIEW Developer

HTML tutorial

There are two ways to tell somebody thanks: Kudos and Marked Solutions
0 Kudos
Message 4 of 6
(2,479 Views)

???
Use Focus Key Binding property to control which of the two buttons will get the next "Enter"?

 

A Mouse down event on one of the two cluster can be used to control the switching.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 6
(2,475 Views)

Sorry I haven't added any sample code, but I work in a secure environment, so it is not easy. I will see if I can add a code snippet which will do the job. 

0 Kudos
Message 6 of 6
(2,457 Views)