LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to create a vi with 5 led light up in a series motion and the direction can be change with one button ?

hello, i am new in labview and was given a task to create a vi like the stated above.. can anyone help me..??

0 Kudos
Message 1 of 9
(3,613 Views)

Why would you be given this task if you are new to LabVIEW? Maybe they should ask somebody who knows how to program in LabVIEW, right?

 

Of course it is possible that this is homework for a LabVIEW course. In this case you should try to apply what you learned in the most recent lesson. What have you tried so far? What problems did you encounter? Where did you get stuck?

 

For some ideas, search the forum for "kitt".

 

 

0 Kudos
Message 2 of 9
(3,598 Views)

my program currently runs without me pressing start button and wont stop even i press stop button

0 Kudos
Message 3 of 9
(3,546 Views)

Your stop button needs to be inside the loop or it will only get read once at the start of the program.

You don't need any sequence structure or local variable.

0 Kudos
Message 4 of 9
(3,535 Views)

i hve my stop button inside the loop. but the program still will run even though i press the stop button. anything i did wrong.??

0 Kudos
Message 5 of 9
(3,524 Views)

See if this can give you some ideas.... Make sure you understand every single function.

 

 

0 Kudos
Message 6 of 9
(3,522 Views)

@mingquanteo wrote:

i hve my stop button inside the loop. but the program still will run even though i press the stop button. anything i did wrong.??


The stop button will only get read every 10 seconds because the code is trapped inside a long sequence structure. Most likely, the button gets read right at the beginning of each itereation, meaning that it can take up to 20 seconds for the program to actually stop.

Why did you change the mechanical action of the stop button.

 

You also have a very basic misunderstanding of local variables. It makes no sense to read a terminal and wire it to a local variable ot itself.

0 Kudos
Message 7 of 9
(3,518 Views)

@altenbach wrote:

See if this can give you some ideas.... Make sure you understand every single function.

 

 


Can you upload in 2011 !!!

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 8 of 9
(3,478 Views)