02-14-2013 04:24 PM
@Dennis_Knutson wrote:
So now that you can keep up with the serial, you can determine the time of the current auto-print. With a tick count and a shift register, you can get the loop iteration time. This should be fairly constant. This will tell you how fast the loop must run before you get buffer overflow problem if you cannot or do not want to change the auto-print time. Then you can add pieces back, one at a time and see which function is affecting the loop rate. You may end up with separate loops for the serial read and for the DAQ.
Thank you for all your help. So the timing for just the serial read/write portion of the loop is 0.19 - 0.2 sec. The full version, before it times out is 0.25 - 0.26 seconds. The write to file is approximately 4 ms (0.04 sec) per loop. The sub-vi where I use a DAQ Assistant and Set Dynamic Data Attributes seems to be consuming the remainder of the 0.02 second (20 ms) difference.
Might you have any suggestions as to how I would I use different loops and still be able to get one 'line' of output data per serial device autoprint?