06-30-2016 11:59 AM
So I am running a VI that is communicating with a VISA device that we built for taking measurements. We are trying to get timing measurements for how long it takes the device to run its program and communicate back. I created a CheckTime.vi Action Engine in order to do this but for some reason am getting the same results back with measurements. Some times the unit will sample 1 time, sometimes the unit will sample 5 times based upon what we tell it to do. I'd like to return a measurements for each measurement whether it's 1 sample or 5.
Below is where the pattern is checked to determine whether to take another measurement, this is where the timer is initialized.
Once the data is being read back from the VISA device we're checking the time as many times as the number of samples taken. For each sample a new data set is read and a new time should be pulled, but the resulting data is showing the same measurement multiple times.
Here are the results with 5 samples. I would think that I should get a different measurement for each iteration of the for loop.
Maybe my AE isn't correct? Or a weird conversion is being made somewhere?
Solved! Go to Solution.
06-30-2016 12:11 PM
I would guess you For loop is iterating so fast the windows time does not have to time to up. Try using the high resolution timer instead of the time in seconds.
Ben
06-30-2016 12:33 PM
You rock Ben!
Thanks!