取消
显示结果 
搜索替代 
您的意思是: 

XML and cluster arrays

Hi everybody!
   I'm programming in LabVIEW 7.1.  I have an array of clusters, and I store it in an XML file (see picture 1).

   When I try to open xml file and get data from it (pict 2), I receive an error, (1103) saying that an XML tag specifying data type is not recognized (Possible reason(s):
LabVIEW:  The XML tag describing the type of data is not recognized.).

   Why? Did I miss something?

   Thank you...

graziano


 
下载全部
0 项奖励
1 条消息(共 6 条)
4,470 次查看
Hi
 
You have to use the "read from xml-file"-function to read the data, as this function returns an appropriate string, which then can be parsed. You can not use the open file and read string vis - just compare the outputs in a simple string control.
 
Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 项奖励
2 条消息(共 6 条)
4,463 次查看
Hi Thomas.
   I already tried to use that VI, "read from xml file", but the problem is quite the same.

   It seems to me that I solved, the problem was that "read from xml file" vi returns an array of string, if I pick up the element 0, that's right for feeding "unflatern from xml".

   Bye!

graziano

0 项奖励
3 条消息(共 6 条)
4,450 次查看
From the error message, I would suspect that there is some sort of syntax error in your xml format.
0 项奖励
4 条消息(共 6 条)
4,446 次查看
...not really!  As I told above, it was only a matter of  "read from xml file" polymorphism.  I had to specify which one of 2 polymorphic aspects I wanted to use: if I set "read from XML file (array)" I should select first element.

   Just take a look at the picture! It's easyer to see than to explain.

   Thank you for interesting in my problem! Have a nice day!

graziano



0 项奖励
5 条消息(共 6 条)
4,438 次查看
Some notices.....

    1) sorry for commenting in Italian!
 
    2) the big cluster wired to "unflattern from xml" is my array of structures.....

   3) It would be great to see in LabVIEW user manual a simple example like mine, to show the way this polymorphic vi works.

graziano
0 项奖励
6 条消息(共 6 条)
4,428 次查看