The data that is being written is just an array of 1's and 0's, so its really Boolean data in LabVIEW but because we want to see actual 1's and 0's I can just convert my Boolean array to 1's and 0's before writing.
So I have this array of 1's and 0's, and if I use the Easy XML Toolkit to write it, I get something like the following:
<REGPGMS>
<name>R0</name>
<bit>0</bit>
<bit>1</bit>
<bit>1</bit>
<bit>1</bit>
<bit>0</bit>
<bit>1</bit>
<bit>0</bit>
<bit>1</bit>
</REGPGMS>
I lose the array index information. However, however my colleague has his data set up in Perl he has the ability to produce the following:
<REGPGMS>
<name>R0</name>
<bit00>0</bit00>
<bit01>1</bit01>
<bit02>1</bit02>
<bit03>1</bit03>
<bit04>0</bit04>
<bit05>1</bit05>
<bit06>0</bit06>
<bit07>1</bit07>
</REGPGMS>
what is the way to this with the Easy XML Toolkit?
I did read the Compound Elements with Attributes section in the Tips & Tricks, but it doesn't seem I would be able to produce exactly what the Perl code is producing with the use of attributes.
One way to do this is to have a cluster that has the same number of U8 integers as the number of bits I want to print, and name each integer control with the appropiate "bitXX" syntax. But I really don't want to have to deal with custom controls here, as the number of bits in an array could change.
Thanks so much for any help http://forums.jki.ne...efault/wink.gif
This post has been edited by amaggs145: 17 May 2011 - 07:58 PM



Back to top








