jaw Posted May 4, 2006 Report Share Posted May 4, 2006 :worship: hi all!i am a newbie to labview and really need help for my final year project. i need to solve this exercise relevant to my project. i have to light up 5 leds in sequence. each time only one turn on. e.g. first light up, followed by second and the rest off, followed my third led on the rest off. and the same for 4th and 5th. any kind ones who knows please do and post me the VI asap in the forum. thanks a lot. Quote Link to comment
didierj Posted May 4, 2006 Report Share Posted May 4, 2006 :worship: hi all!i am a newbie to labview and really need help for my final year project. i need to solve this exercise relevant to my project. i have to light up 5 leds in sequence. each time only one turn on. e.g. first light up, followed by second and the rest off, followed my third led on the rest off. and the same for 4th and 5th. any kind ones who knows please do and post me the VI asap in the forum. thanks a lot. How to use the LAVA Website ... we are not your "Homework Hustlers", thanks :thumbdown: EDIT: Could any admin remove the duplicate in Forum Feedback & Support? Quote Link to comment
jaw Posted May 4, 2006 Author Report Share Posted May 4, 2006 How to use the LAVA Website... we are not your "Homework Hustlers", thanks :thumbdown: EDIT: Could any admin remove the duplicate in Forum Feedback & Support? please help me if u can. cause i have been trying hard but to no avail... :headbang: Quote Link to comment
didierj Posted May 4, 2006 Report Share Posted May 4, 2006 please help me if u can. cause i have been trying hard but to no avail... :headbang: Then show us what you did so far. Good resources on how to program in LV are: - the thousands of examples: Menu "Help/Find Examples..." - The LabVIEW FAQ of this site - Most probably you'll find few books in your campus library. Quote Link to comment
mross Posted May 4, 2006 Report Share Posted May 4, 2006 :worship: hi all!i am a newbie to labview and really need help for my final year project. i need to solve this exercise relevant to my project. i have to light up 5 leds in sequence. each time only one turn on. e.g. first light up, followed by second and the rest off, followed my third led on the rest off. and the same for 4th and 5th. any kind ones who knows please do and post me the VI asap in the forum. thanks a lot. Sorry, I won't do your school work for you. But, you may want to look at how to read and write to digital ports and lines. Mike Quote Link to comment
Chris Davis Posted May 4, 2006 Report Share Posted May 4, 2006 LabView Basics Maybe you shouldn't procrastinate, go thing this project isn't very hard. Read the online basics course and you should be able to do this with no problems. Pay attention to the Express VI's for data acquisition which should make this a very easy project for you. Quote Link to comment
mross Posted May 4, 2006 Report Share Posted May 4, 2006 please help me if u can. cause i have been trying hard but to no avail... :headbang: What do you know how to do? (Real question, not rhetorical) Have you ever written a VI? To do what? Are even able to wire up LEDs to the digital outputs and get that to work? What you are asking is incredibly simple and all of us had to get at least that far on our own. Furthermore everytime we do something new it is the same for us as for you. We go look at the examples that ship with the software (there are very pertinent example for you to use). We try and figure out how the examples work and mess around with them some. We read forum archives, look at tutorials, etc. Once we have the basics in hand and at leatst a rough understanding of the basics - then, then we start asking people to show us the VI. Mike Quote Link to comment
jaw Posted May 5, 2006 Author Report Share Posted May 5, 2006 LabView BasicsMaybe you shouldn't procrastinate, go thing this project isn't very hard. Read the online basics course and you should be able to do this with no problems. Pay attention to the Express VI's for data acquisition which should make this a very easy project for you. i did read through all the basics already. but i did not see any that could run in sequence. i need one that is able to light up one by one.something like when you finish this step the task is complete it will go on to the next step. please help me please. i only have 1 week left. Quote Link to comment
crelf Posted May 5, 2006 Report Share Posted May 5, 2006 i did read through all the basics already. but i did not see any that could run in sequence. :!: Show us what you've already done and we'll try to point you in the right direction. Quote Link to comment
jaw Posted May 5, 2006 Author Report Share Posted May 5, 2006 :!: Show us what you've already done and we'll try to point you in the right direction. this is one that i tried but does not meet the requirement of my project needs. mine is more like making it a latching circuit and run step by step. Download File:post-4922-1146794379.vi Quote Link to comment
mross Posted May 5, 2006 Report Share Posted May 5, 2006 this is one that i tried but does not meet the requirement of my project needs. mine is more like making it a latching circuit and run step by step. You haven't stated what your project needs are. That could be helpful. The VI was helpful. You said LEDs and I thought you meant actual LEDs attached digital outputs of a DAQ card, not boolean indicators on the front panel as you have. You are missing the concept of dataflow and the use of wires for sequencing. Try to stop using sequence structures they are bad form the way you are using them. Dataflow progamming is not like sequential text programing. No gotos. A function or subvi runs when all its inputs are filled with data. I sympathize, you must be trying to make sense of this with no mentors around. Been there. You should turn on the highlighting (light bulb symbol at top of block Diagram in menu) to watch how the data moves about the VI. There are about a million ways to do this. I am not saying you want to copy what I did. It is more to demonstrate dataflow for you. Play with the vi a bit. You will need to extract both the top level vi and the subvi to the same folder. Download File:post-48-1146803160.zip Quote Link to comment
didierj Posted May 5, 2006 Report Share Posted May 5, 2006 Good example mross, at the first glance it looks rather complicated but includes everything, just worth of a "two-houres-LV-basic-course" :thumbup: Jaw, your next step would have been to tell your computer to switch off the leds, means wirting a false to a local variable of the led (rmd on led, select "crate/local variable"). Seems you missed two things: - how to create local variables in LV - the computer doesn't do anything unless you tell him exactly what to do, even with 3+GHz processors they are still dumb Didier Quote Link to comment
jaw Posted May 5, 2006 Author Report Share Posted May 5, 2006 Good example mross, at the first glance it looks rather complicated but includes everything, just worth of a "two-houres-LV-basic-course" :thumbup: Jaw, your next step would have been to tell your computer to switch off the leds, means wirting a false to a local variable of the led (rmd on led, select "crate/local variable"). Seems you missed two things: - how to create local variables in LV - the computer doesn't do anything unless you tell him exactly what to do, even with 3+GHz processors they are still dumb Didier so how do i create local variable in lv? Quote Link to comment
didierj Posted May 5, 2006 Report Share Posted May 5, 2006 ...(rmd on led, select "crate/local variable")... Sorry, my fingers were too fast, means "rmb (right mouse button) on led, select from the pull down-menu "create/local variable". ...voil Quote Link to comment
jaw Posted May 5, 2006 Author Report Share Posted May 5, 2006 You haven't stated what your project needs are. That could be helpful.The VI was helpful. You said LEDs and I thought you meant actual LEDs attached digital outputs of a DAQ card, not boolean indicators on the front panel as you have. You are missing the concept of dataflow and the use of wires for sequencing. Try to stop using sequence structures they are bad form the way you are using them. Dataflow progamming is not like sequential text programing. No gotos. A function or subvi runs when all its inputs are filled with data. I sympathize, you must be trying to make sense of this with no mentors around. Been there. You should turn on the highlighting (light bulb symbol at top of block Diagram in menu) to watch how the data moves about the VI. There are about a million ways to do this. I am not saying you want to copy what I did. It is more to demonstrate dataflow for you. Play with the vi a bit. You will need to extract both the top level vi and the subvi to the same folder. i thank you for your time to help me, but some how this one like not wad i needed. :worship: Quote Link to comment
jaw Posted May 5, 2006 Author Report Share Posted May 5, 2006 Good example mross, at the first glance it looks rather complicated but includes everything, just worth of a "two-houres-LV-basic-course" :thumbup: Jaw, your next step would have been to tell your computer to switch off the leds, means wirting a false to a local variable of the led (rmd on led, select "crate/local variable"). Seems you missed two things: - how to create local variables in LV - the computer doesn't do anything unless you tell him exactly what to do, even with 3+GHz processors they are still dumb Didier hmm do u know how to create latching circuit using labview?? please advise Quote Link to comment
mross Posted May 8, 2006 Report Share Posted May 8, 2006 hmm do u know how to create latching circuit using labview?? please advise Yes. What causes the switching? Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.