11-19-2012 12:28 PM
am new to lab view. Can someone help me with how to create a small program that lights an LED. The led must be on 10-20seconds and switches off for 60seconds and repeat the process continuously
Solved! Go to Solution.
11-19-2012 12:37 PM
You might want to look into the online tutorials.
12-03-2012 02:07 PM
Thank you so much for the reply and advise. I went through the whole exercise and it was very helpful. My developed program is as attached and I am using Labview 8.6. My problem is to control the time the LEd remains in the switched on position. I can control the on and off switching of the LED. Can I add another loop for this
12-03-2012 02:51 PM
The LED is a physical one connected to a DAQ device, right?
I will change your code to a state machine which should fix the problem.
12-03-2012 03:10 PM
The code will at least give you an idea of the state machine. You can play with it and observe the LED on the front panel turn on & off.
You can set the duty cycle (On time / off time). Just substitute the LED with your DAQ.
12-04-2012 11:48 AM
Thank you so much for the new code. That is exactly what I was looking for. The only proplem I am having now is to link the code with my DAQ. When I wire the DAQ assistant to replace the LED out side the loop, several error messages are appearing. See attachment.
12-04-2012 12:41 PM
Change your DAQ assistant to so that it is for a line output rather than a port. A port encompasses multiple lines, and as such, requires a numeric determine the combination of lines to turn on and off.
12-04-2012 01:21 PM
Thank you a million times for the response and comments. I am still new labview and you might wondering how I am still asking for your advise . I am stil not sure how to change the DAQ assistant to line output. What I have done is on the DAQ assistant, I have clicked it and changed that from port to line out put and then it initialised the VI. However, there is til some a problem with the wiring which shows and error.
12-04-2012 04:04 PM
It looks like one you pick it has port type of output in the early stages of configuring the express VI, it will stay that way.
So delete the DAQ assistant and start with a new one picking the line option for the digital output.
See the attached file.
12-04-2012 06:01 PM
@tgpasi wrote:
I am still new labview and you might wondering how I am still asking for your advise .
Don't worry. After many years programming in LabVIEW, I still ask for advice.