08-21-2009 09:05 AM
Hi,
I am working on a similar project to send multiple data from a DAQ card via tcp, but i just cant seem to get it to work. I am still a begineer with LV so not sure how to handle the problem, there are no errors but the client graph shows nothing. i had tried the recemended methods in this forum but havent been able to solve the problem. Some sites suggest using Data socket instead, so should i start using data socket ? or can it be done using tcp?
Thanks
08-21-2009 09:20 AM
Hi Jeshua,
can you show your vi? I'm sure it's possible with the tcp/ip functions.
Mike
08-21-2009 09:40 AM
thanks mike for trying to help me out. Please have a look at the attached files. I have actually, replaced the daq assistant with a three waveforms and to make it easier to work with i have both the server and client in the same file.
thanks
08-21-2009 09:59 AM
08-21-2009 10:16 AM
hey,
Thanks for your suggestion, please have a look at the file to make sure i used it correctly. However, the graph is still not displaying anything.
08-21-2009 01:31 PM
08-21-2009 01:57 PM - edited 08-21-2009 02:00 PM
You need to wire a false constant to "data includes array or string size" on the receiving end. See discussion above.
EDIT: after testing, I think that's part of the problem, but it still isn't working even with that false constant.
08-21-2009 02:19 PM
I tried that too.
Without the false constant, it doesn't unflatten, but doesn't return an error. (Put an error indicator on the Unflatten function since automatic error handling was disabled.) Put in a false constant and you get error 74.
08-21-2009 02:20 PM
I got it working; turns out my last reply was almost the right idea. Try removing the False constant from "prepend array or string size" on the sending side. For some reason, it appears that unflatten from string works better for arrays of waveforms when the array size is included.
08-21-2009 02:37 PM