01-14-2015 06:43 PM
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!
Solved! Go to Solution.
01-14-2015 09:33 PM - edited 01-14-2015 09:39 PM
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.