noir_desir Posted July 24 Report Posted July 24 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 July 25 Report Posted July 25 (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 July 25 by ShaunR Quote
noir_desir Posted July 25 Author Report Posted July 25 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 July 25 Report Posted July 25 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 July 25 Author Report Posted July 25 hello, Cluster is open before (in message machine) i just take variant . Quote
ShaunR Posted July 25 Report Posted July 25 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 July 26 Author Report Posted July 26 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
ShaunR Posted July 26 Report Posted July 26 1 hour ago, noir_desir said: It's possible to system linux modify the structure? Unlikely. You clearly have a lot more decoding layers than you have shown so far (is that a DrJPowell messenger vi rather than a network stream vi?). The probability is that your variant isn't what you think it is or your middle layers are modifying the variant (casting to strings and including a length, for example). Using the send in your example, write the example for receiver that I showed previously and test it can be received and decoded. 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.