05-03-2016 03:06 AM
Hello,
I'm a Labview beginner.
I try to make a programm which does the following
After I pressed a certain button on the Keyboard (space) a light on the left goes on, after pressing the button (space) again after 3 s (less or more) the light on the right goes on. This should be woring as long as I stop the programm.
I would be great to get help from you.
Attached thats what I got so far.
05-03-2016 05:19 AM
a light on the left goes on .. afterwards the light on the right goes on
ok ... but when do your lights go off ?
05-03-2016 05:28 AM - edited 05-03-2016 05:39 AM
so I found a solution, I'm sure it is not the best but it is working.
Now the lights schoukd go off after 1 sec after pressing the button on the keyboard how to solve this?
thank you
05-03-2016 05:51 AM - edited 05-03-2016 05:58 AM
Here is something to get you started. It will take care of the left LED. Give you ideas to taking care of the right.
05-03-2016 06:17 AM
I'm not sure if this is right
but both LEDs should be turned off at the beginning than after pressing a button on the keyborad on LED shoukd goes on for 1s after pressing the button, after I push the button a second time the other LED soukd go on for 1 sec and so on.
I dont know how I can make the LEDS turn off after 1 sec
05-03-2016 06:35 AM - edited 05-03-2016 06:36 AM
This appears to work. See if it helps.
05-03-2016 06:40 AM
Sorry I cant found all the functions you used
But thank you, in your VI when the lights are going out?
05-03-2016 06:47 AM
volcomsmile wrote: But thank you, in your VI when the lights are going out?
The lights go out when the Elapsed Time goes to TRUE.
The other function you probably aren't finding is the Boolean Crossing PtByPt.vi.
05-03-2016 06:57 AM
Thank you the point is I do not unterstand your solution. Is there no way to make my program running good?
05-03-2016 12:16 PM
Okay a couple of things, first your code has some complicated ways of doing comparisions. Here I simplified it by having the equal function look to see if any of the values in an array are equal using an array constant and the Or Array Elements function.
The next thing you might want to notice is that all of these pictures we are posting are executable code, and you don't need to recreate the code in the picture, just drag the picture to your block diagram. This is called a snippet:
http://www.ni.com/tutorial/9330/en/
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord