LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why is there a time delay in my while loop

I thought it should too, but our data just gives us a voltage in the A column in Excel. It gives a starting time along with a description of the data on the first spreadsheet but besides that there is no time values exported. 

 

thanks

0 Kudos
Message 21 of 25
(531 Views)

Check the data on the group worksheet not the root coverpage


"Should be" isn't "Is" -Jay
0 Kudos
Message 22 of 25
(519 Views)

Looking at things from another perspective, you could simply record both voltage and acceleration simultaneously from the start and after you have all the data, search your voltage array to find the index of your target voltage then pull the acceleration data from it's array beginning at that index.

 

That will give you the position in the acceleration array you want to start with.  You can pull the subsets from each array as needed to lose any unwanted values.  Your tasks will need to be configured to run at the same frequency so each data point is collected in (or near) parallel.  At the same time, you could just cluster one of the arrays and add in a time stamp as needed.

Doug

"My only wish is that I am capable of learning each and every day until my last breath."
0 Kudos
Message 23 of 25
(504 Views)

Those devices will not support multi device Tasks


"Should be" isn't "Is" -Jay
0 Kudos
Message 24 of 25
(495 Views)

Acknowledged.  I was actually thinking running the two tasks in parallel vs as ingle multi-channel task.  You risk a little bit of a bias in timing but it all depends on what level of accuracy is needed if that approach would work.

Doug

"My only wish is that I am capable of learning each and every day until my last breath."
0 Kudos
Message 25 of 25
(477 Views)