Showing results for 
Search instead for 
Did you mean: 
Reply

Reference Library for Converting Between LabVIEW and XML Data (GXML)

Re: RESOLVED - Building Web Services with GXML

Wow Martin I'm glad you called tech support.  I don't think I would have figured that out.  Thank you for posting the resolution!  I have several projects in the pipe that will use GXML in a LabVIEW Web Service.

 

Jeff

0 Kudos
Message 31 of 129 (4,435 Views)
Reply
0 Kudos

GXML does not work with tables

[ Edited ]

The GXML parser does not seem to work with tables such as an array of clusters containing one string and one table does not work.

0 Kudos
Message 32 of 129 (4,274 Views)
Reply
0 Kudos
Highlighted

Re: GXML does not work with tables

Could you please attach an example VI demonstrating this?

 

Thanks,

 

Jeff Tipps

S&V Systems Engineer

0 Kudos
Message 33 of 129 (4,268 Views)
Reply
0 Kudos

Re: GXML does not work with tables

Sorry my mistake, it does indeed work with tables.

0 Kudos
Message 34 of 129 (4,265 Views)
Reply
0 Kudos

Fast Parser does not work with arrays of unknown size

I have a large data structure (array[(string,array[][])]) that takes around 1 minute to do a recursive parse on an cRIO.  The fast parse mode

gives me an error because the array sizes are not known at runtime.  Is there a way to make the fast parse mode

work in such a case?

0 Kudos
Message 35 of 129 (4,241 Views)
Reply
0 Kudos

Re: Fast Parser does not work with arrays of unknown size

Can you please post an example code demonstrating this?

 

Thank you,

 

Jeff Tipps

S&V Systems Engineer

0 Kudos
Message 36 of 129 (4,240 Views)
Reply
0 Kudos

Re: Fast Parser does not work with arrays of unknown size

Actually the problem is that the GXML data that is being generated and saved to the cRIO Flash is somehow getting its <cr><lf>'s messed up.  I will have to revisit in the morning and will post my results.

0 Kudos
Message 37 of 129 (4,231 Views)
Reply
0 Kudos

Re: Fast Parser does not work with arrays of unknown size

Thank you I look forward to your results.

 

Jeff Tipps

S&V Systems Engineer

0 Kudos
Message 38 of 129 (4,224 Views)
Reply
0 Kudos

Re: Fast Parser does not work with arrays of unknown size

Ok, the problem was in the read/write file.vi primitive that I use to save and read the GXML data from my target devices.  The default for the file vi's is to convert EOL to LF which makes the data incompatible with the GXML parser.

0 Kudos
Message 39 of 129 (4,220 Views)
Reply
0 Kudos

Re: Fast Parser does not work with arrays of unknown size

Are you using the the GXML Read/Write File VIs?

 

GXMLReadWrite.png

 

Regards,

 

Jeff Tipps

S&V Systems Engineer

0 Kudos
Message 40 of 129 (4,218 Views)
Reply
0 Kudos