NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
MaHammoud
Posts: 4
0 Kudos
Accepted Solution

Input timer GUI

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

Member
amezam
Posts: 184
0 Kudos

Re: Input timer GUI

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

Member
MaHammoud
Posts: 4
0 Kudos

Re: Input timer GUI

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

Member
hw70
Posts: 35
0 Kudos

Re: Input timer GUI

[ Edited ]

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.

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page