![]() Set the loop exit when the function returns the number of bytes you expect (like greater than or equal to 1). Instead of this timer, use Bytes at Serial Port function in a loop. You have a timer to wait for receive handshake. When you call serial write, the contents of the buffer get written, no need to flush. In your serial read subvi, you don't need the flush buffer vi. Sebastian NeumeyerMessage Edited by Seppfish on 04-20-2006 09:01 AM The settings of VISA are "Char Termination = Enabled", "termination char (0xA = '\n' = LF)" and "Timeout 1 s."ĭoes anybody have an idea why that happens? I got a Win2k System with Labview 7.1 and an AMD Athlon Processor, the Board is with VIA-Chipset.Ĭand. If I programm it in such a manner, that there are send strings in a loop until my strings is send back (of the other side of communication, then it works, but I generate an bufferoverflow there.) The VISA Comm is not Inited in the loop and only once in the programm. If i activate the "NI Spy" and run the Programm in non Highlighte Exec, than it also works.all my strings are send correctly.Īll Settings of Visa are correct, I can transmitt all the Data in the Highlight Exec, also a 10 ms wait after writing the Serial Port is implemented. When I send Strings via the Comm Port in Debug Mode / Highlight Execution, then the Strings are transmitted correctly, otherwise the Strings are not transmitted. ![]() I got a strange problem with my serial communication:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |