noir_desir Posted yesterday at 12:14 PM Report Posted yesterday at 12:14 PM Hello everybody, I have got a problem with xml string, in fact à vould like transmis this xml trame : And i would use I have got problem -1108... I don't a fault in my code... Thank you Quote
ShaunR Posted 11 hours ago Report Posted 11 hours ago (edited) You didn't give the text, just an image of the text. You didn't give us the VI you were proposing. We've no idea what the cluster is that you have wired that must match the XML. Your XML has many, many problems. e.g. <string> <name>adresse</name> <val>fabio....</val> </string> That is not a string, it is cluster of "name" and "val". It cannot be converted into a LabVIEW string type if that is what you have wired to the the primitive. Generate the XML from your cluster that you have used with the unflatten then compare with what you have in your XML text. Edited 11 hours ago by ShaunR Quote
noir_desir Posted 10 hours ago Author Report Posted 10 hours ago hello I'm sorry. i use crio to transmis my cluster (vi envoie) (transmission) and receive in my program (reception) transmission.zip reception.zip Quote
ShaunR Posted 5 hours ago Report Posted 5 hours ago 4 hours ago, noir_desir said: hello I'm sorry. i use crio to transmis my cluster (vi envoie) (transmission) and receive in my program (reception) transmission.zip 313.41 kB · 1 download reception.zip 103.43 kB · 0 downloads When you send the message you encapsulate the message as a cluster of string and variant. You don't seem to unwrap the variant from the name/variant cluster in the receiver. What I expect to see is something like this in the receiver: 1 Quote
noir_desir Posted 5 hours ago Author Report Posted 5 hours ago hello, Cluster is open before (in message machine) i just take variant . Quote
ShaunR Posted 5 hours ago Report Posted 5 hours ago 11 minutes ago, noir_desir said: hello, Cluster is open before (in message machine) i just take variant . The variant in your image is a cluster, not a string. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.