08-02-2012 08:52 AM
I wa wondering if there is a way to create a timer input so that in the GUI I can input a time (in seconds) to have a certain valve open or close (that is, toggle a switch). Is this possible to do without haveing to set up some timer in program and manually change it?
Thanks
Solved! Go to Solution.
08-03-2012 10:29 AM
Hello MaHammoud,
I would recommend a State Machine Architecture when you can have some states. In the first state, you can input the time, it goes to the next state, open valve and then close valve. You can implement more features if necessary like conditional actions while this happens.
Best Regards,
amezam
08-03-2012 11:17 AM
Thanks amezam,
That looks like a solution that would work, but I do not know how I can implement that into Dasylab "code". The code image attached below is what I have now. I'd like to be able to interface the timer with that code. Thanks for your help!
08-06-2012 06:54 AM - edited 08-06-2012 06:57 AM
Hmm, i am not sure if i understand your problem - nevertheless, i've made an example worksheet. Possibly my solution suits your requirements. 😉
There's also an image attached to this post.