LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Auto pressing a button

Solved!
Go to solution

You are welcome Oesen,

 

Have a nice day

 

 

Best Regards

Anders Rohde

Applications Engineer

National Instruments Denmark

0 Kudos
Message 11 of 12
(250 Views)

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.)

Message 12 of 12
(239 Views)