Does anyone have an example of using the LabVIEW XML Parser (not LabVIEW Schema) to create/attach an Attribute? There doesn't appear to be an example in LV 8.6 using the Create/Get/Set Attribute methods, and I have been fiddling with it for several hours without luck.
Solved! Go to Solution.
Thanks...I had been trying to use the "Create Attribute" property, which oddly wouldn't throw an error but nor would it attach an attribute!
Ah, I was trying to use the Append Child method to attach the Attribute.
I am not able to retrieve the attribue of the config node in this example:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<register descr="my descr.1" adr="0" offset="0" mult="0.1" />
<register descr="my descr.2" adr="1" offset="0" mult="0.1" />
<register descr="my descr.3" adr="2" offset="1" mult="1.0" />
<register descr="my descr.4" adr="200" offset="0" mult="0.1" />
<register descr="my descr.5" adr="201" offset="0" mult="0.1" />
I can do that only for register node , maybe because they have not childs
Using LV8.6 xml parser functions
It seems all so clunky, I am not a painter, this should be software engineering
On the top of the block diagram, I am not able to use correctly the getElementByID, so it's not optimal.
NI Documentation is horrible, element and node are confusing.
Where is class documentation hierarchy?
Element IS a node, where is the OO concept applied?
I swear I redo the project in .NET from scratch if I don't manage to understand this within tomorrow.
It is a piece of crap, I am really disappointed.
All in the name of Graphical Programming? pathetic...
I have no intention of getting into a debate with you on whether LabVIEW is a "real" programming language. You've already made your opinions on this matter clear. Just because you can't understand it doesn't mean it's "crap". All that I will say is the LabVIEW is a programming language and is software engineering. If you can't see that then you don't know what software engineering is.
As to your specific issue: Aside from not using the event structure properly**, the code you have correctly reads the attributes and populates the indicators. What is the issue?
** Event structure issue: