05-15-2007 05:55 PM
05-16-2007 12:14 AM
05-16-2007 08:06 AM
Hi,
Well, the problem is solved! After only about 5 hours of troubleshooting...(uggh)
The issue with the VI staying in "waiting for SubVI" mode or whatever, was just a distraction. In hindsight, I don't know why that should be, but I noticed it with the other VIs that manage Visa resources. It doesn't seem to effect the operation.
The problem is a bug with the LabVIEW Elapsed Time VI. It works as expected under LV alone, but when run under TS, it only delays the first time it is called. On sebsequent runs through the sequence, it does not reset. In my application, I was using that to wait from the time characters start arriving at the serial input buffer until the whole message has arrived. My VI was erroring due to a timeout that didn't really happen.
Attention National!!
This is a bug that should be recorded.
Thanks,
Roger
05-16-2007 08:22 AM
The Elapsed Time function doesn't delay at all. You would want to use the Delay function to actually wait for some amount of time. I'm also not sure why you would need to use a Delay function either. Your entire message has arrived when the byte count you specify is reached or when the termination character is detected. The other way is to check to see if there are bytes in the buffer and keep reading until it is 0.
If, however, you believe there is a bug in the elapsed time function, you really need to post an example that demonstrates the behavior. Ni can't fix what they can't see and reproduce.