LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Auto pressing a button

Solved!
Go to solution

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

Best regards

Oesen
0 Kudos
Message 1 of 12
(3,144 Views)

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.

0 Kudos
Message 2 of 12
(3,143 Views)

Thanks for the answer 🙂

 

 

Best regards

Oesen
0 Kudos
Message 3 of 12
(3,132 Views)

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

Message 4 of 12
(3,103 Views)

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

0 Kudos
Message 5 of 12
(3,073 Views)

Can you upload it as a 2010 version please 🙂

 

 

Best regards

Oesen
0 Kudos
Message 6 of 12
(3,066 Views)
Solution
Accepted by Oesen

Here you go, please let me know if this solves you problem 

0 Kudos
Message 7 of 12
(3,054 Views)

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 ?

Best regards

Oesen
0 Kudos
Message 8 of 12
(3,043 Views)

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

Message 9 of 12
(3,041 Views)

Thanks for the help 

Best regards

Oesen
0 Kudos
Message 10 of 12
(3,039 Views)