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.
You might want to look into the online tutorials.
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
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.
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.
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.
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.
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.
@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.