10-16-2007 09:53 AM
10-17-2007 08:47 PM
10-17-2007 10:55 PM - edited 10-17-2007 10:55 PM
Message Edited by Ravens Fan on 10-18-2007 12:01 AM
10-18-2007 10:54 AM
10-18-2007 03:46 PM
10-25-2007 03:50 PM
10-25-2007 04:20 PM
Unfortunately I have been home most of this week with pneumonia. I have not proved it was the serial communications that caused the hang up. I am not 100% sure how I would do that. I guess a VI to monitor serial data or some kind of timeout default so if communication stops I could escape the WHILE loop. I guess I should go into what the WHILE loop does... and without it in front of me I can not give all the details of the different functions I call. I know out side of the loop I have a buffer to hold the data. The WHILE waits until the number if bits is equal to 2 or an communication error occurs. Once I have two bits I do the necessary math to convert the data to more understandable data.
How could I use a timeout to solve a potential problem in the serial communication?
10-26-2007 01:52 PM
Hi Dan!
Thank you for contacting National Instruments. From what you have mentioned, it looks like you are on the right track in that you should monitor the serial timeout from within a While Loop. Also, I would try running this program in Highlight Execution in order to determine if the problem is occurring from the serial connection portion of the block diagram. Any information you might run across when you are able to access the program could be helpful in locating the problem. I hope this helps! Let us know if you find any additional information or have any other questions. Have a great day!
Jason W.