Some courses and learning paths on NI Learning Center may not appear on learner dashboards. Our team is actively investigating.
If you encounter access issues, please contact services@ni.com and include the learner’s name, email, service ID or EA number, and the list of required courses.
10-10-2012 10:14 AM
You are welcome Oesen,
Have a nice day
Best Regards
Anders Rohde
Applications Engineer
National Instruments Denmark
10-10-2012 01:16 PM - edited 10-10-2012 01:20 PM
I don't understant why you need to duplicate the entire case, adding local variables!
All you need to do is add the timeout event to the button case so the same event reacts to both.
I also modified your convoluted (array size, insert into array). A simple "built array" is sufficient.
(I have the feeling that this project is nowhere complete. Seems rather convoluted and dysfunctional.)
Here's a very quick edit. I only adddressed three points: (1) combine events, (2) clean up array building, (3) change timeout to a control..
(You still need to deal with the race conditions, etc.)