boyracer38 Posted December 2, 2004 Report Share Posted December 2, 2004 Is a sequence structure the best to ensure a serial read/write between two pc's does not get mixed up? PC1 will send to PC 2 PC2 does something with the data and sends back to PC1 so PC1 PC2 Write --> Read Read <-- Write Do i need ad a delay anywhere in the loops to ensure synchronisation?? or am i going down the wrong track al together?? Also, as part of the read, i have a concenate string function. It only write to the serial when the string is complete. Once its complete, the string is written to serial port and then i want to move onto the next sequence in the structure. How to terminate a while loop when the string is written?? Regards Jason Quote Link to comment
Sarah83 Posted December 2, 2004 Report Share Posted December 2, 2004 Is a sequence structure the best to ensure a serial read/write between two pc's does not get mixed up?PC1 will send to PC 2 PC2 does something with the data and sends back to PC1 so PC1 Quote Link to comment
Mark Balla Posted December 3, 2004 Report Share Posted December 3, 2004 Here is an example and serial vis that I use every time I do serial communication. They have built in timers. and wait until there is data at the serial port before reading. Good Luck. Download File:post-584-1102047167.llb Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.