10-15-2015 11:10 AM - edited 10-15-2015 11:11 AM
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...
THANK YOU VERY MUCH IN ADVANCE![]()
10-15-2015 11:15 AM - edited 10-15-2015 11:17 AM
@reza92 wrote:
ANY IDEA?? I tried EVERYTHING...
![]()
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?
10-15-2015 11:22 AM
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
10-15-2015 11:26 AM
@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?
10-15-2015 11:26 AM - edited 10-15-2015 11:28 AM
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...
10-15-2015 11:48 AM
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
10-15-2015 12:17 PM
thank you for suggestion bob
the answer was totally there
... sorry about taking your time guys, i'm still a beginner in labview.
10-15-2015 01:24 PM
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