03-24-2010 02:32 AM
Hi there,
I really tried my best to understand the problem my VI is giving but in vain pls somebody help me out, my VI operation is to vary the speed of the device and read the corresponding values through UART, now initially after running the VI the values are read fast that is the serial transmission and reception is fast enough then after some time the transmission from the VI is fast but the reception is very slow this happens during the real time and when i tested my VI with hyperterminal it is giving me overrun error please help me with all these two issues....... i am posting my VI please tell me if the code is ok or do i have to make any changes.
If there are any questions regarding the problem please ask me.........thank you......
03-24-2010 09:09 AM
Can't look at a block diagram that's password-protected.
I also don't understand your comment "I tested my vi with hyperterminal". How exactly did you do that, since the serial port can only be open by one application at a time? Are you referring to HyperTerminal running on another computer?
03-24-2010 10:53 PM
03-25-2010 09:21 AM
The main issue I see as far as the communication part is concerned is that in the little loop where you are checking for the available bytes on the serial port it seems the premise was to stop that loop once you got 17 bytes. However, that's not how it's coded. The loop will stop regardless of how many bytes are on the serial port. This is because you are sending out a True out of the case structure from the check that the number of bytes is greater or equal to 17.
There are numerous other issues with your code:
03-25-2010 11:15 AM
Oh yeah, forgot one:
03-25-2010 11:28 PM
Hi smercurio_fc,
Thank you for the suggestions i am making all the changes you mentioned, i will now check it and let you know if there are any problems.
03-26-2010 07:51 AM
Hi smercurio_fc,
I have done some changes in the VI, the issue i have seen is without the file input output operation the VI seems to work fine as soon i start writing the data into the excel sheet the VI seems to hang up and it is giving me overrun error (-1073807252) can you pls help me on this.............
03-26-2010 10:10 AM
You didn't quite follow all the comments I had made, and you actually made things worse with the VI that writes to file by introducing a loop and an uninitialized shift register. You must like loops for some reason, because you seem to be using them everywhere, even in places where they don't belong. When looking at the code further I saw other issues:
I updated your code. Please see the changes I made.