01-13-2014 10:15 PM
Hi, I started to play with my arduino and labview program since a couple of weeks. I managed to read and log my analog signal on my computer but now it is getting more difficult.
I will add a (Max & Min) value into my program to turn on a pump (digital on) depends on my analog value from my sensor? I also want to have 2... repeated cycles for my program.
Let's say:
1- start the program the pump goes on
the value is increasing to 50 (Max)
2- the pump stopped
the value decreases to 10 (Min)
3- the pump goes on again to value 50 (Max)
4- repeat the cycle 2 or 3 times
Can someone help me to run the program or give me some hints.
I'm more than happy over every comment.
Regards, Markus
01-14-2014 07:13 PM
The overall system that you describe can be done with a state machine. It looks like you are trying to implement an on/off controller so that is something you might consider looking up.