LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LEDs programme

hi everybody,

I prefer to make a program that consists of 30 Boolean indicators and switches on the LEDs from left to right and from right to left as a matrix of LEDs with a trigger button, a stop button, a pause button and a button continuous.

Thanks !

0 Kudos
Message 1 of 16
(4,109 Views)

You have not asked a question. You have not attached your code that would demonstrate the problem you are having. You should also know that an array (what you are mistakenly calling a matrix) must contain identical types of elements.

0 Kudos
Message 2 of 16
(4,083 Views)

Hi, thank you for your response.

 

I m a beginner on LabVIEW. I haven't a code, and i can't do that.

I prefer a program that allows the lighting of LEDs as follows:

->led1 -> led2 -> -> -> ->

             < -< -< <- <- <-

            -> -> -> -> -> ->

             < -< -< <- <- <-

            -> -> -> -> -> -> led30

when LED 2 is turned on LED1 is Off and so on until the LED 30, and with 4 buttons:

                  - Start

                  - Pause

                  - Continues

                  - Stop

              

I need your help!

Thanks ! 

 

 

0 Kudos
Message 3 of 16
(4,060 Views)

No one here is going to do your homework so I suggest you start with some of the free on-line tutorials such as this. Once you have a basic understanding of arrays and Boolean controls, try to write something. It might be helpful to do a basic flow chart first. Then you can post what you have written with detailed information on any problems you might be having.

Message 4 of 16
(4,051 Views)

This is a nice homework assignment where you can apply all the skills you learned in class. 😄

 

Once you think you are done, post your solution here and we will give you constructive feedback. If you gets stuck, ask specific questions.

 

For some simple ideas to get started, have a look at this thread. Now create a state machine with several states (idle, running, paused, etc.). LabVIEW even includes design templates for that. Good luck and have fun.

Message 5 of 16
(4,030 Views)

Hi,

Thank you for your advice.

Now I have the following code.

Is that you can help me to improve this code.

I can not turn the other rows.

I like the second from the right turns when the first rows is all lit, and so on.

 

Thanks !

0 Kudos
Message 6 of 16
(3,954 Views)

A pretty good start.

 

Why do you have size wired to the disabled property node? The acceptable values are Enabled (0), Disabled (1), and Disabled and Grayed Out (2). If you connect a value other than those three (such as size = 8), the behavior may not be defined although it appears to use the last value.

 

I suggest you try two things to get the other rows of LEDs to turn on. Both of these suggestions will help you learn about LabVIEW. First, run your VI with Execution Highlighting (the light bulb on the block diagram toolbar) turned on. This will show exactly what is happenning at a slow enough rate that you can follow it. You may find it helpful to clean up the diagram and spread thigns out a bit when doing that. Also use size and dimension size = 3 so it does not take too long to run.

 

Second, write down on a piece of paper exactly what indexes and what boolean value you want to change at each time step to get the display you want. Again, a 3x3 array is sufficient to show the patterns and not take too long to do. Then you can use this information to try to determine how to manipulate the array indexes. 

 

Hint: shift registers and another for loop.

 

Lynn

0 Kudos
Message 7 of 16
(3,948 Views)

thank you for your responses, but a don't understand.

 

Regards.

0 Kudos
Message 8 of 16
(3,939 Views)

What specifically in their responses don't you understand?

0 Kudos
Message 9 of 16
(3,935 Views)

To run Execution Highlighting go to the block diagram.  Click on the light bulb icon in the toolbar. Then click the run arrow and watch what happens.

 

Lynn

0 Kudos
Message 10 of 16
(3,933 Views)