04-18-2013 04:22 AM - edited 04-18-2013 04:28 AM
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
Solved! Go to Solution.
04-18-2013 04:36 AM
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.
04-18-2013 04:38 AM
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.
04-18-2013 05:05 AM
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...
04-18-2013 06:23 AM
|SO, your basic problem is that your timer?
04-18-2013 06:36 AM
Yes, the main problem is, how to construct timer, with no main loop pause.