LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

send 2D-array to server

Good morning,
In my program, I try with those VI but the server do not receive all the data when it is 1D-array and the server receive no data when it is 2D-array...What's happenned?
Thank...
0 Kudos
Message 11 of 13
(706 Views)
Good morning,
In my program, I try with those VI but the server do not receive all the data when it is 1D-array and the server receive no data when it is 2D-array...What's happenned?
Thank...
0 Kudos
Message 12 of 13
(707 Views)
joly,

It's hard to tell exactly what went wrong with only one half of the VI pair. However, it appears in your latest attachment that you are only sending the size of the array along, and not the array itself.

Here is what I think is the most successful development strategy for a fairly new LabVIEW programmer:
1. Find an premade example that claims to demonstrate the general functionality you're interested in
2. Run that example and verify that it performs successfully on your machine and that you understand how it works
3. Incrementally modify the example--re-running it as you make changes--to perform the exact functionality you're after

I think you followed steps 1 and 2 above, but then decided to code from scratch to get your 2D array functionality. As a result, you may have forgotten to include both the "send length of data" step and the "send actual data" step.

What I have now done is followed step 3 in order to create your 2D array example out of the Simple Data Server.vi and Simple Data Client.vi examples that I mentioned above. The VIs are attached here, but before you look at them, I really encourage you to go back to those shipping examples yourself and try to follow step 3 above to modify them to do what you need.

Take care,
John
0 Kudos
Message 13 of 13
(698 Views)