06-08-2018 05:53 AM
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
Solved! Go to Solution.
06-08-2018 06:43 AM
look properties of Button. Look like there are toggle by Return
06-08-2018 12:06 PM
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
06-08-2018 01:22 PM
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!!!
06-08-2018 01:47 PM
???
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
06-09-2018 10:28 AM
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.