LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Timer for case structrure

Hello guys

i want to put a timer in my case structure. 

i have a case structure that it has two states : True/False i want to change the states like this:   60sec :TRUE  &   90sec: off

also if its available 60 and 90 could be variables wich are user inputs  (like create--->control) .ANY IDEA?? I tried EVERYTHING...Smiley Sad 

THANK YOU VERY MUCH IN ADVANCESmiley Wink

 

0 Kudos
Message 1 of 8
(4,072 Views)

@reza92 wrote:

ANY IDEA?? I tried EVERYTHING...Smiley Sad 

 


You haven't tried "everything", because that would include the correct solution. 😄

 

Please attach what you think is your best attempt. What is outside the case structure? How long does each case take to execute?

0 Kudos
Message 2 of 8
(4,063 Views)

In the upper right part of the Forum is a section called "Looking for Help getting started with LabVIEW?".  The second option is "Training for Students".  Go to "Learn LabVIEW", and view the second set of videos on Loop and Execution Structures.  Be sure to view all of the sections.  If you cannot figure out how to solve your problem after doing this, drop the course.

 

Bob Schor

0 Kudos
Message 3 of 8
(4,054 Views)

@reza92 wrote:

i have a case structure that it has two states : True/False i want to change the states like this:   60sec :TRUE  &   90sec: off

also if its available 60 and 90 could be variables wich are user inputs  (like create--->control) .ANY IDEA??


Sounds a lot like a place for a State Machine.  What all are your requirements for your program?



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 8
(4,046 Views)

thank you for relplying .

here is the thing ; there is a switch wich uses usb that sends two commands:"sr01e" and "sr11e" i have a manual mode : state changes using bottun. and auto mod : state changes by time cycles. 

i put a time elapsed box but i think it doent make any sense here...

0 Kudos
Message 5 of 8
(4,043 Views)

If you had followed my suggestions and looked at the videos on Loops, you should see how to solve your problem.  Think about what you want to do -- you are repeated doing something over and over (sounds loopy to me), you have something that seems to vary between loops (hmm, wonder if this can be handled with something that is peculiar to a loop structure, let's look at all the videos, it may take us 15-20 minutes of our So Valuable Time), and maybe an "Aha! Moment" will show you how basically simple your task is.  Hint -- one loop, one Case statement, at most 20 minutes of watching instructional videos.

 

Bob Schor

0 Kudos
Message 6 of 8
(4,017 Views)

thank you for suggestion bob Smiley Wink the answer was totally there Smiley Happy...  sorry about taking your time guys, i'm still a beginner in labview.

0 Kudos
Message 7 of 8
(3,998 Views)

There is nothing wrong with being a beginner -- we were all beginners at one point!  We got to be "non-beginners" by doing a bit of work ourselves, learning, trying things, making mistakes, studying.  There is a fair amount of material out there to help you get started, and the Forum is a good place to come to when you are really "stuck" or want advice on techniques.  But you have to put in your own effort, so if you have a question or problem, show us what you've done, and describe what you want to do or know.

 

Bob Schor

0 Kudos
Message 8 of 8
(3,977 Views)