LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to loop "OK" button action

Solved!
Go to solution

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 Smiley Sad

 

0 Kudos
Message 1 of 3
(3,205 Views)
Solution
Accepted by topic author manish108

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 3
(3,192 Views)

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.

0 Kudos
Message 3 of 3
(3,169 Views)