01-13-2012 07:41 AM
Sorry about the late reply. It appears others have beat me to it. Also, I too misunderstood what your real problem was. It's with the timing, correct? Can you post your code?
01-13-2012 11:18 AM
@alan4 wrote:
PC2: from sec 0--> 10ms, read information from the PC1
from 10ms--> 20ms, send information TO PC1
from 20ms-->32ms, wait the start again doing this buckle
I THINK YOU WILL UNDERSTAND..IF YOU DON'T TELL ME AND I WILL TRY TO EXPLAIN IT BETTER...
THANK YOU!!
What does "wait the start again and doing this buckle" mean? What is "buckle"?
01-13-2012 11:54 AM
"Wait, then go back to start and loop around"
01-16-2012 01:33 AM
good morning...
here yoy have my code,
i use the same code for two pcs only i change the ip number...
the problem is that both computers are sending info in the same time so,they can not read in correct time...
so what can i do to correct this?
i think that giving times to every action will be the solution!!
what do you think!!
thanks for give me your help!!
01-16-2012 07:27 AM
First you can reduce the complexity of your code by getting rid of the sequence structure, it's not needed. What are you using for timing? Which PC is the host?
01-16-2012 07:33 AM
hi
i am using the same programm in both pcs...
i need timing because the pc gives information every 32ms...so i need to read it and send it to the othe pc...
and afther that i need to read information..so i think is quite hard...to explain also...i f you don not understand tell me and i explain it again more propperly!!
thanks!
01-16-2012 07:59 AM
@alan4 wrote:
the problem is that both computers are sending info in the same time so,they can not read in correct time...
so what can i do to correct this?
What do you mean by this, they cannot read in correct time?
01-16-2012 08:02 AM
i am saying that i use datasockets and if both pc are sending info same time, they can not read it properly the information is giving by the other opc..so i think thta i need to do sequencialii first one read the other send, second ...
01-17-2012 07:55 AM
i have just done this, but i have an error colud you help me please??
01-17-2012 01:25 PM
State the error.