08-06-2008 01:12 PM
08-06-2008 02:28 PM - edited 08-06-2008 02:31 PM
08-06-2008 03:09 PM
08-06-2008 03:18 PM
Forget the last statement in the previous post. The chart had transpose array checked. I unchecked it and the display worked. I think everything is working now. I will test further.
Thanks to all.
08-07-2008 02:36 PM
Here is the end result. The solution is not that different from Mod5. I Put the build array function inside the while loop and used a convert from dynamic data and a transpose array to get the data in the format required to build the array. The array is initialized with a blank array each time the while loop is called because the whole loop is housed inside a for loop and is called multiple times to collect data for each calibration point (controlled by the for loop). I did not include the for loop because it just added another layer. What this vi allows is the collection of a finite number of data points specified by the user. The data points can be 1 or thousands. The vi programmatically terminates the data collection when the requested data is read from the buffer without the user having to hit a stop button. The read vi also does not timeout because it is housed inside the while loop. The data is displayed on the chart with time as the x axis and is saved in a measurement file with its header information. I’m also building an array because once the data points are collected, I average them and build another array to perform best fit equations and graph the data points and the best fit equations.
Thanks for everybody that helped and made suggestions not only to this post but the two or three others that preceded this one.
Eric