10-09-2012 02:22 AM
Hello everyone. Is there any setting in Front Panel, to auto pressing a button in every "x" seconds i can define it to. I made a program and i have to press a button every 15. seconds, so i can be away from keyboard and still make measurements.
Thanks in advance
Oesen
Solved! Go to Solution.
10-09-2012 02:28 AM
You can even make measurements every 15 seconds even without involving any buttons.
How to do it depends on the program, so please show us your code. Thanks.
10-09-2012 03:17 AM
Thanks for the answer 🙂
10-09-2012 08:00 AM - edited 10-09-2012 08:00 AM
You could assign a timeout to the measurement case.
(You are building the data array way too complicated. All you need is a "build array". No need to take the size, then use "insert into array". You also seem to have race conditions, because the "elapsed time is measured first, potentially way before the measurement is taken.)
10-10-2012 04:50 AM
Hi Oesen
Did you have a chance to look a altenbach's recommendations? He is right in that the timeout case would be the right thing for you to use.
I have modified you VI to include this timeout in the top loop. Let me know if this works for you.
Best Regards
Anders Rohde
Applications Engineer
National Instruments Denmark
10-10-2012 05:13 AM
Can you upload it as a 2010 version please 🙂
10-10-2012 07:00 AM
Here you go, please let me know if this solves you problem
10-10-2012 08:24 AM
Thanks !.. That solved my problem, but is there any way to define the timeout time (15s) in the Front Panel instead of the Block diagram ?
10-10-2012 08:27 AM
Turn the constant of 15,000 into a control.
I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours
10-10-2012 08:32 AM
Thanks for the help