LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

set ON with delay

Solved!
Go to solution

Hi guys,

I'm new in LabView and in programming as well. What I need is to control Arduino microcontroller with LabView and it's nessessery for my diploma thesis. I looked for solution of my problem here in forum and all over the web, but im little bit confused of all of that.

What I need to do is when it comes TRUE value from sensor, it sets ON an output pin for set delay (in ms) and after time is runned out, it sets OFF again. I tried it with elapsed time in While loop, but when there is loop with elapsed time running in loop of main code (while loop in while loop) -> the main code cicuit stops until the loop with elapsed time runs out. It is nessessery for me to run the main code all the time without stop delays. Im little bit in blue, so...

Please help.

Thanks a lot..Hanes 

0 Kudos
Message 1 of 13
(2,874 Views)

Hanes, 

 

You need to provide more information, such as the hardware you are working with and attach your code. No one here noew what you are involved with and so post as much information as you can in a structured and concise way.

 

Also, spell LabVIEW correctly.

0 Kudos
Message 2 of 13
(2,865 Views)

Also, when you post your message, give MEANINGFUL message subject, so that people who have knowledge in that particular area will be able to easily recognize your post and what you are trying to do.

0 Kudos
Message 3 of 13
(2,863 Views)

Ok,

In attachment is a picture of the block diagram. The whole code is for automatic wattering of experimental plants. Sensor is analog soil moisture sensor, which gives values around 0 - 900. If soil moisture is drier then is set treshold value -> it sets ON a digital pin of watter pump, which runs until set time runs out ant then switches OFF again. All the code is unnecessarily big to uplod it here and all labels are in czech...

0 Kudos
Message 4 of 13
(2,857 Views)

|SO, your basic problem is that your timer?

0 Kudos
Message 5 of 13
(2,834 Views)

Yes, the main problem is, how to construct timer, with no main loop pause.

0 Kudos
Message 6 of 13
(2,830 Views)