LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help Making Program Run Faster


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! 🙂

0 Kudos
Message 11 of 15
(890 Views)
Thanks.  I am playing with some things now trying to get just one "drink mixing" sequence to work and work quickly.  So far so good, just having problems with the final frames of the sequence.  When reversing the conveyor to the home station, it stops half way back.
0 Kudos
Message 12 of 15
(857 Views)
Time for some debugging:  Add some breakpoints and probes, then watch the code using execution highlighting while it is near the failure point. Most likely it will be obvious what's happening. Feel free to attach your code again and we can have a look too. 🙂
0 Kudos
Message 13 of 15
(841 Views)
Quick question guys.  Is there a way to latch a LED on for a pre-determined amount of time?  We have a "walk the line" sobriety test, and when the user fails we want the "drunk" light to latch on.  Any tips?  Thanks, have a good weekend.
0 Kudos
Message 14 of 15
(819 Views)

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! 🙂

0 Kudos
Message 15 of 15
(811 Views)