LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
Anagha.G

event structure should be modified

Status: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined. 

Problem:

 

if  i  wanna  take a  single event of  mouse  down  or  value  change   of  so  many  controls  like  booleans  without  grouping  them  in  clusters i  have  to  select  each  boolean  and  give  it  the  event  like  value  change,  it  is  not  feasible  with  so  many  booleans .

 

Suggestion:

 

 I  think  here  should  be something  like  tick  marks  in  event  case  so  that  we  can  just  select  the  booleans  using  those  tick  marks   or  controls  and  give the  event  groupwise.

 

5 Comments
X.
Trusted Enthusiast
Trusted Enthusiast

In apparence, not a bad idea, but it would only make sense to invest time implementing if it could be reused for a lot of if not all data types (and mixed data types at that). This being said, developing a good UI takes time, so you have to be ready to spend it (and first design it efficiently). I am no expert on that topic, and you do not provide any detail on how many controls you are talking about, but it would seem that droping them all in a cluster may be a good idea. Why do you make it sound like it is not the case? Did you spread them around your panel? If so, is this really a user-friendly UI in the first place? Would you dare posting a picture of it :-?

Anagha.G
Member

 

I dont think no. of controls matter as if i have not more than 5 controls , i will not use cluster each time but i will have to take a separate event for each of my 5 controls.

I am using more than 300 controls at a time but sometime its not feasible to take a cluster to group the controls and wen am having controls randomly over the front panel (see sector.jpg...its a map and i wanna trace different paths of it using controls)

 

there is some problem in attaching the file but i will difinitely attach the files showing the complex circuits and road maps where i cant use clusters sometime

tst
Knight of NI Knight of NI
Knight of NI

First, you should note that you can already have a single event case for multiple controls - you just need to add the new event using the + button in the event dialog and then select the control and the event type. This isn't as convenient and fast as simply clicking the control in the front panel, but it does work perfectly fine for a small number of controls.

 

If you have a large number of controls, you can build an array of reference of the controls and use dynamic event registration to register for their event in a single call with a single event case. For clusters this is easy, because they the Controls[] property which gives you such an array. If you have hundreds of controls not in a cluster or a tab, then building the array from static references is not practical, so you can use the front panel's Controls[] property to get all the references and then either filter it before registering based on some criteria (for instance, make the label start with "__") or filter it inside the event itself.

 

 

That doesn't mean that the idea itself is bad, but when you have a large number of controls, statically registering the event is probably something I wouldn't want, and I don't think this is really needed for a small number of controls.


___________________
Try to take over the world!
Anagha.G
Member

yah i know the facility of + option in event case but i really want various properties like label text of each control, its value change, mouse down etc. as am simulating electric circuits for a simulator where different properties are required as there are so many circuits i want the most feasible and less time consuming option to take the events,

taking reference is also not a bad idea but it definitely takes more time than using tick marks

Darren
Proven Zealot
Status changed to: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined.