12-18-2012 06:28 AM
Hi all,
I'm very new to LabVIEW and am not aware of many simple things. Here's what i wish to do ..........
I want to modify a complex VI (not written by me) and want to do few simple things. In my VI there are few inputs:
1) constant integers (take it for example as "on time of LED in seconds")
2) OK button (latch type) which starts certain things (e.g. switches on LED and LED remains on for specified time.
So, every time one has to press OK button after entering the duration of switching-on time !
Now, I wish to make a small upgrade where I wish to input a sequence (1D array) of switch-on times which is fine but how do i create an array of OK switching action ?
In my understanding the OK switch is Latch type boolean signal and i don't know how to escape multiple manual clicks on OK button by some smart changes.
Any support here will be highly appreciable.
N.B. To give a better picture i was trying to create the VI for virtual example of LED which i described above but i failed measurably. May be i'm trying to jupm too fast
Solved! Go to Solution.
12-18-2012 07:17 AM
You could just run your array into a FOR loop with just a single OK press. Hopefully your using subVIs to you don't have to duplicate code.
12-18-2012 11:44 AM
ah Sub VI ........ yes that is what will be better route to follow.
And you may be right about passing whole array with single OK press.
Let me try it when i'm back to my LabVIEW system.