LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP/IP with "unflatten from string" function : error 116

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

0 Kudos
Message 11 of 20
(1,284 Views)

Hi Mark,this is what i did from what you sed but it is still giving me the same error

Download All
0 Kudos
Message 12 of 20
(1,282 Views)

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.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 13 of 20
(1,275 Views)

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

Download All
0 Kudos
Message 14 of 20
(1,259 Views)

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.

-FraggerFox!
Certified LabVIEW Architect, Certified TestStand Developer
"What you think today is what you live tomorrow"
0 Kudos
Message 15 of 20
(1,257 Views)

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

0 Kudos
Message 16 of 20
(1,253 Views)

Here is an updated client with the proper unflatten from string to match the data type of what was sent.

 

Client [3].png

 

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.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
Message 17 of 20
(1,241 Views)

Thanks again for your help.The VIs you added what are their names?The once in the attachment

0 Kudos
Message 18 of 20
(1,223 Views)

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.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 19 of 20
(1,218 Views)

Here is the VI.

 



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 20 of 20
(1,214 Views)