LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to make an array of strings?

Solved!
Go to solution

Could you please post the code that you are trying?
Perhaps you have a typo (or whatever a typo would be called in a graphical environment)

Cory K
0 Kudos
Message 11 of 15
(681 Views)

here is the code.

0 Kudos
Message 12 of 15
(677 Views)
Solution
Accepted by Rambaldi

You have to wire the output of read tcp directly into unflatten from xml. If the xml does not match what you wire to the type specifier then you will get this error. It looks like you are prepending the string you send with the size. Make sure you remove those size bytes before you wire into uflatten from xml.

 

Instead of an array of strings you could flatten a type defined cluster to xml and send that. It looks like you are sending other data besides an array. Replace the string array constant wired into the type specifier of unflatten from xml with a cluster constant of the typedef.

 

Place a probe or an indicator on the output of flatten to xml. Place another probe or indicator on the input to unflatten from xml. They need to be identical (same xml structure). Look for what is different and go from there.

=====================
LabVIEW 2012


0 Kudos
Message 13 of 15
(663 Views)

If you dont want the XML, the tab delimited (assumining no tabs in a string command) is 'format to string' and 'scan from string' with %s\t%s\t%s formater.  not as flexible as xml but very easy to do.

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 14 of 15
(656 Views)

thank you everyone for the help,you guys are great.i finally did it.Smiley Wink

0 Kudos
Message 15 of 15
(653 Views)