01-23-2012 10:39 AM
Ah, yes. I concatenate the array to build a longer 1D array. Then i send this full array at once over tcp/ip.
If you want to send a 2D array you'll have to adapt the AE and recieving part (or loop through the 2D array and send 15-16 1D arrays).
If you look at the recieved array you'll see you get some 800 lines, all messaged concatenated.
That's a small fix i'm sure you can handle.
- Change AE to handle 2D arrays
- Change Client interpretation (back to) 2D arrays.
/Y
01-23-2012 12:05 PM
01-23-2012 06:00 PM
I add to a 1D array in the AE, which is then sent. The client interprets a 2D array. That results in a 0x0 array, which you'll see if you run in highlight.
Change the AE to handle 2D arrays.
01-24-2012 03:33 AM
i think the action engine doen't work good, i cant read nothing from this i don't know why!!
01-24-2012 04:46 AM
AE changed to handle 2D arrays.
/Y
01-24-2012 06:19 AM
yamaeda thanks!!
finally i have comunicated the pcs!!
but for that i have changed one thing, it doesn't comunicate because the tcp ip give me a error that after that doesn't work good the ae.
so ichanged it.
see the times it doesn't work good, don't respetate 32ms in the programm see ti
please!!!!
01-24-2012 07:43 AM
You've created a 2nd AE and are now using 2 different!
You use Init on AE2D and then read and add on AE2D_read
01-24-2012 08:16 AM
thanks yamaeda now yes!!was my fault!!sorry!!!
now i have correctes and it works very good!!!!
last question, to do a bidireccional conexion, what do you suggest me?
1- use the same program but also including the client in the same VI, so in one program there are going to be client send loop and read loop,
using the same port to send and to read from the other pc...
2- use the same program but also including the client in the same VI, so in one program there are going to be client send loop and read loop, but using different port one in one direction to read info and the other port to send information..
what do you prefer!!
01-24-2012 10:31 AM
I'd prefer 2B: Keep server and client vi's separated and create a Communication vi to have them both. Apart from that i'd use separate ports to keep it easy. 🙂
/Y
01-25-2012 01:29 AM
if i want to comunicate two differents pcs, what must i write in the service name, i know that i must write in one vi the ip for example 172.20.200.23 and in the other one i put localhost, but i doesn't work, only work if i put in both of them LOCALHOST.... why??
is the ip direction wrong?
thanks!