Mads Posted May 22, 2005 Report Share Posted May 22, 2005 I can create event and case structures using scripting and put them into a loop etc., however I need to also make and link a number of frames, has anyone successfully done that using scripting? Adding a frame is easy enough, but to link it to an event or selector value seems to be more difficult. For a case structure there is a selector strings property, but that is read only...It seems a bit strange that you can make all the code, except give the frames their names / event link...so I hope it is doable. Alternatively: The end goal is to make a central GUI handler based on an event structure that can react to clicks on a large number of script-created buttons (hundreds, perhaps thousands, spread across different VIs). The event structure should fire when any of the buttons are clicked and identify them and perform the appropriate action based on the label of the button...Creating one frame linked to a mouse down for all the buttons would be one way, separate frames for each event a second way, but the linking must be automated as well... Quote Link to comment
martin@aerodynamics Posted May 30, 2005 Report Share Posted May 30, 2005 Hy Mads, I played around with the event structure this weekend. I tried to find out, which vi NI uses to configure the event-case. (I am still searching). All I saw is, that you can directly create different event cases with the Number of Reference Frame Index. LabVIEW UI events (0); ActiveX events (1); Userevents (25); others(?). Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.