From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

store data in array just when there is data.

Solved!
Go to solution

@amkamyab wrote:

 

i want to record time of each data in array that i can see delay between pushing buttons.


Maybe the attached example can give you some ideas. The possibilities are endless!

 

 

0 Kudos
Message 11 of 15
(510 Views)

Thanks again for your help. it is very useful.

what i want to see is duration time between two true value in array as i showed in picture. my program attached also here.

Thanks again

Download All
0 Kudos
Message 12 of 15
(499 Views)

@amkamyab wrote:

what i want to see is duration time between two true value in array as i showed in picture. my program attached also here.


My earlier code should have enough hints for you to do that, but your case is even simpler, because the time increment are multiples of the loop time.

 

Maybe all you need is an output array that contains the durations. The booleans are all the same, so that's not worth storing.

 

(btw, it is difficult to program if the front panel is maximized to the screen. Why do you do that??? Is there a reason you are using "built array" and "insert into array" to do the same thing? Why are your feedback nodes initialized differently?)

0 Kudos
Message 13 of 15
(491 Views)

may i ask you give me your email that i send real program that i have, that you can see what is it exactly?

 

0 Kudos
Message 14 of 15
(484 Views)

@amkamyab wrote:

may i ask you give me your email that i send real program that i have, that you can see what is it exactly?


(No, that's not how the forum works and you could not afford me as a private consultant. 🐵

 

Simplify your code to a minimal example that still shows the problem, attach it here, and give everyone a chance to help.

0 Kudos
Message 15 of 15
(473 Views)