04-18-2013 06:01 PM
Hi,
Im trying to publish some measurement data with LabVIEW webservice and read the data with Android client. However i have some problems with the XML output from the LabVIEW webservice.
I want to publish the data in in this form:
<Response>
-<Terminal>
<Parameter> Temperature</Parameter>
<Value> 5 </Value>
<Unit> ºC </Unit>
<Description> Measurements from Sensor 1</Description>
</Terminal>
</Response>
Any ideas how i can do this? i havent found any good example on how to format the XML output this way.
04-19-2013 02:03 AM - edited 04-19-2013 02:08 AM
Create a cluster with that specification and the XML should look like that. *does quick test*
Hmm, looks like you'll need to create some special function, a simple unbundle and Format into string.
/Y
03-13-2014 08:47 AM
Hello,
Does anyone of you got some good example? I am just trying same thing with a compactRIO as web server, where it will receive a cluster for make some settings. My big question is how can I read this cluster to early apply an unbundle function and use my cluster elements?
Thanks in advance!
Alberto.
04-29-2014 09:41 AM
Hi,
You can format the data using Format Into String as shown in the attached snippet. Is this maybe something you can use?
Willy