04-02-2009 03:23 AM
AlgonquinGrad2009 wrote:
I am still a newbie to LabView with only donig basic labs before and thought I would give this a go for our project. I will definatly take your advice.
It's pretty impressive for a newbie, but I don't think you did receive any good guidance or spent much time on tutorials. There are quite a few LabVIEW features that, if you had known them, would have dramatically simplified the program. Right now there is way too much duplicate code.
For example only zero or one of the parallel cases is probably active at any given time. So all you need is a single case structure with multiple cases (one empty and one for each scenario).
Still, you'll learn a lot from your mistakes and in a few weeks you'll write stellar code. 😉 Keep us updated with your project so we can give more detailed advice down the road. Good luck! 🙂
04-02-2009 07:44 PM
04-03-2009 12:36 AM
04-03-2009 04:58 PM
04-03-2009 08:12 PM
AlgonquinGrad2009 wrote:
Is there a way to latch a LED on for a pre-determined amount of time?
Yes, there are many ways.
Do you want it to be on until reset by the operator of for a pre-determined time. (if so, for how long, e.g. 10 seconds, until the guy is sober again ,etc.).
Typically, you would keep the boolean in a shift register and manipulate the value when certain events happen. See how far you get. 😉
(Here's a similar discussion, maybe you can modify it for your purpose). Good luck! 🙂