LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

opposite data reporting

Solved!
Go to solution

I am having a problem with the reporting of data with my experiment. I want to grab a measurement at every 6 second interval, but when I put that in the front panel, it instead grabs all the data inbetween 6 seconds.

Anyone know how to fix this? I attached the vi.

 

Thanks!

0 Kudos
Message 1 of 2
(2,817 Views)
Solution
Accepted by topic author kmarcella

Change your Not Equal to 0   to Is Equal to 0.

 

I would use the elapsed time function to determine when 6 minutes is up.  It makes more sense than tying your time to an iteration count for a while loop.  Suppose later you change the pace of data?  Then the number of iterations needed for 6 minutes will be a different number.

 

PS.  You don't need two index Arrays to index out element 0 and element 1 of the same array.  Just use one and drag the bottom of the function down 1 step.  It will give you two outputs, element 0 and 1 automatically without needing to wire in any index constants.

0 Kudos
Message 2 of 2
(2,796 Views)