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...
Thanks a lot..Hanes
Solved! Go to Solution.
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.
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.
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...