LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to work in diferents sequences...

Solved!
Go to solution

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

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 61 of 71
(1,001 Views)
Sorry yamaeda but i don't understand you... So now i must change the ae to be able to work with 2D arrays??
And now you are saying that i am sending 1D array???

But i don not receive nothing on the client???why is that??
0 Kudos
Message 62 of 71
(994 Views)

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.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 63 of 71
(985 Views)

i think the action engine doen't work good, i cant read nothing from this i don't know why!!

0 Kudos
Message 64 of 71
(974 Views)

AE changed to handle 2D arrays.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 65 of 71
(970 Views)

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!!!!

0 Kudos
Message 66 of 71
(968 Views)

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

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 67 of 71
(965 Views)

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!!

0 Kudos
Message 68 of 71
(961 Views)

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

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 69 of 71
(955 Views)

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!

0 Kudos
Message 70 of 71
(946 Views)