noir_desir Posted Thursday at 12:14 PM Report Posted Thursday 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 yesterday at 07:57 AM Report Posted yesterday at 07:57 AM (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 yesterday at 07:58 AM by ShaunR Quote
noir_desir Posted yesterday at 08:53 AM Author Report Posted yesterday at 08:53 AM 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 19 hours ago Report Posted 19 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 19 hours ago Author Report Posted 19 hours ago hello, Cluster is open before (in message machine) i just take variant . Quote
ShaunR Posted 19 hours ago Report Posted 19 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
noir_desir Posted 1 hour ago Author Report Posted 1 hour ago Yes of course, i convert in my crio, cluster => xml string => send by stream in my pc supervisor , i use structure. I use only pc supervisor, no problem, but i use crio, problem arrive.... It's possible to system linux modify the structure? 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.