07-15-2010 01:41 AM
Hi all,
Lets say i am using the formula node function to compute some variables and output three data X, Y and Z. Now i need to send X, Y and Z via TCP/IP to another device that does not have LabVIEW. As the output of the formula node is in integer form, there is a need to convert them to string type (using cast type) before wiring it to the input of the TCP write function. However, as the external device does not have the LabVIEW software to convert the received data from string to integer, my external device will not be able to function correctly.
So am i right to say that there is no way that i can use the formula node to compute X, Y and Z and send it to my external device whereby the latter will receive the data in integer form? Please advise. Thank you.
07-15-2010 02:00 AM
hi prince Boeing,
You cant say that that there is no way that i can use the formula node to compute X, Y and Z.Since X,Y andz are integers,use format into string vi which will straight away convert to chars(for example 456 as input to the functions output will be also be a string with 456(string length 3)),so at the receiver you will receive straight away 456 as string chars and you need to manipulate accordingly.
Thanks and regard,
srikrishnaNF
07-15-2010 02:39 AM
Hi srikrishnaNF.
Thank you for your reply. I understand that i can do what you suggest but the problem that i face is that the receiver have no means to manipulate the the string chars to integer form.
07-15-2010 03:32 AM
07-15-2010 03:46 AM
Hi srikrishnaNF,
Its a GPS receiver, a normal electronic device.
07-15-2010 03:59 AM
07-15-2010 09:39 PM
You need to study receiver manual to see the format that receiver read the data, and send TCP message with this format.
07-15-2010 09:43 PM
let's say the receiver can only take in integer data. how can i convert it to integer format, since i need to convert the data to string format to feed to the TCP write function input. this is assuming the receiver has no means to convert the data it receives to the format that it can use.
07-15-2010 09:43 PM
let's say the receiver can only take in integer data. how can i convert it to integer format, since i need to convert the data to string format to feed to the TCP write function input. this is assuming the receiver has no means to convert the data it receives to the format that it can use.
07-15-2010 09:57 PM
Try flatten to string