12-31-2013 05:42 AM
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 !
12-31-2013 08:57 AM - edited 12-31-2013 08:59 AM
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.
12-31-2013 10:45 AM
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 !
12-31-2013 11:14 AM
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.
12-31-2013 01:16 PM - edited 12-31-2013 01:21 PM
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.
01-01-2014 03:34 PM
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 !
01-01-2014 03:56 PM
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
01-01-2014 04:26 PM
thank you for your responses, but a don't understand.
Regards.
01-01-2014 04:45 PM
What specifically in their responses don't you understand?
01-01-2014 04:52 PM
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