03-20-2012 02:49 PM
Thanks for the reply and advice,will keep that in mind.I was just looking to solve the problem and move on to the main issue.Thank tho and i will try what you have said
03-20-2012 03:19 PM
Hi Mark,this is what i did from what you sed but it is still giving me the same error
03-20-2012 04:16 PM
You are still mixing types. The data you send is a Sine Wave. The typecast on your receive side is an array of doubles. BOTH sides must use the same data type into/out of the typecasts.
03-21-2012 06:44 AM
I have tried to connect a convert to dynamic data to the type cast so i can connect a graph to the output of the type cast but its doesnt accept it.I am new to this Labview,if you can modify my VIs so it can run i would be grateful.attached are the VIs done in Labview 2011
03-21-2012 07:05 AM
As Mark mentioned already, sending the datalength first, and then the data is a good practice while communicating over TCP/IP.
Secondly, if you are trying to do some data conversions, you must be sure that the recieving end unflattens the data with the same data type of the sender, and then you could use it later to do conversions. You should not mismatch data types on the sending and recieving ends, while using flatten/unflatten functions.
03-21-2012 07:35 AM
To be honest i have tried all your suggestions and nothing is working.All i am trying to do is use a simulate signal to send a sinewave with the following configuration,100Hz frequency,an amplitude of 10,500(Hz) samples per second and 50 number of samples.So do this step by step,now please look at the server screen shot i attached earlier and tell me if there is anything wrong with the connections i have done because from my understanding of what Mark said that is what i have done on the server side.Thanks
03-21-2012 01:33 PM
Here is an updated client with the proper unflatten from string to match the data type of what was sent.
To figure this out I drilled down into the express VI that was generating the sine wave and found it's data type. This is something you should try to learn when you run across problems like this.
03-22-2012 08:31 AM
Thanks again for your help.The VIs you added what are their names?The once in the attachment
03-22-2012 09:30 AM
You're welcome.
I don't recall however if you bring up the help it and hover over the VIs it will give you the names. To drill down I opened the front panel of the express VI. This is the VI that is generating your sine wave. Once you have that open (you get to it by right clicking on it and selecting "Open front panel") you can drill down through the VIs that it calls.
03-22-2012 10:06 AM
Here is the VI.