LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to work in diferents sequences...

Solved!
Go to solution

My bad, i tricked you a little. Sorry about that. Change the Servidor to a Listen, and the Client as an Open TCP connection, then i got them to communicate (with localhost as address).

In your new attempt you're closing the TCP connection each loop!

Next is the issue of sending and interpreting the right message.

 

/Y

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

Qestit Systems
Certified-LabVIEW-Developer
Message 31 of 71
(936 Views)

so i have done that??changing to listen and to conect, but i don't understand " In your new attempt you're closing the TCP connection each loop!"

0 Kudos
Message 32 of 71
(932 Views)

@alan4 wrote:

so i have done that??changing to listen and to conect, but i don't understand " In your new attempt you're closing the TCP connection each loop!"



Your Close TCP connection is placed inside the loop, meaning you'll close it after each sent/listened command. Move it outside, same with Open/Listen.

The idea is: Open connection, Loop 'listen' until done, Close connection.

Your current code does: Loop 'Open connection and listen and close' until done.

 

/Y

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

Qestit Systems
Certified-LabVIEW-Developer
Message 33 of 71
(929 Views)

yamaeda!!that's right now there are no errors in my codes, omnly i don't identificate the string array i am sending==why?

 

thanks!!

0 Kudos
Message 34 of 71
(924 Views)

my final program that is...but why another error??i miss something!!can you help @Yamaeda ?

 

thanks really thanks!!

Download All
0 Kudos
Message 35 of 71
(914 Views)

Your server now creates an array until the start value was an error ... i.e. forever!

Now you close connection outside loop, good! You however also send data outside loop, i.e. once when stopping program ... The TCP write should happen inside the loop.

After I changed the first read to 4 you'll get a correct message length read.

If you look at the recieved data you'll see that you do get some data but you cant make it into a 2D array directly, you'll have to use the inverse of your sending functions.

Since you made a Flatten to string before sending you'll need to Unflatten on the recieving end.

 

You're really close now. 🙂

 

/Y

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

Qestit Systems
Certified-LabVIEW-Developer
Message 36 of 71
(908 Views)

By the way, if you type cast on one side, you need to type cast on the other also. String to number isn't the same thing.

/Y 

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

Qestit Systems
Certified-LabVIEW-Developer
Message 37 of 71
(889 Views)

I modified some, removed the file read to do some testing. The string to double conversion is probably unnecessary, but i changed as little as possible and now it works.

/Y 

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

Qestit Systems
Certified-LabVIEW-Developer
Download All
0 Kudos
Message 38 of 71
(887 Views)

Sorry yamaeda but i need the program bfor the version 2009 of labview!!

 

 

thanks!

0 Kudos
Message 39 of 71
(875 Views)

And i cant fix it from here, someone else able to downconvert my modified vi's?

 

/Y

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

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 40 of 71
(872 Views)