DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

Input timer GUI

Solved!
Go to solution

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

0 Kudos
Message 1 of 4
(6,474 Views)

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

0 Kudos
Message 2 of 4
(6,463 Views)

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!

 

ValveControIMG.jpg

0 Kudos
Message 3 of 4
(6,458 Views)
Solution
Accepted by topic author MaHammoud

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.

M.Sc. Holger Wons | measX GmbH&Co. KG, Mönchengladbach, Germany | DASYLab, DIAdem, LabView --- Support, Projects, Training | Platinum NI Alliance Partner | www.measx.com
Download All
0 Kudos
Message 4 of 4
(6,445 Views)