LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Basic concept about XML, openG and Xcontrol

As not professional programmer, I want to know the purpose or basic concept on XML, OpenG and Xcontrol.
 
XML: very recently, I got to know XML in homepage used by "convert XML."
Besides homepage, someone uses in LV.
What's the advantage of using XML  and useful example in LV?
 
OpenG: in many times, I heard about it in this discussion board.
But I am very complex whether I need to install some extra library to use OpenG sourse or OpenG was named from some open LV source without any restriction.
What's the famouse SubVI or LV program in OpenG?
 
XControl: whenever I used property node, I saw the Xcontrol property.
When can I use Xcontrol and how to use it?
0 Kudos
Message 1 of 7
(4,911 Views)
XML is a language for defining hierarchical data in simple text where each piece of data can have attributes and meta data. An example would be:

<cluster>
    Label="Num1"
    <numeric 1>
       value=3.2
       representation=DBL
       style=slide
    </numeric 1>
    <numeric 2>
       value=3
    </numeric 2>
</cluster>

which is a mockup for what a LabVIEW cluster definition might look like. XML is kind of complicated, because to properly read nested structures, you need some clever recursive calls. It's also not very efficient, but it's very good at passing meta data around. LabVIEW's XML primitives are not useful for any kind of XML, but if you search for "LabXML", you should find VIs which use the Microsoft parser to parse XML. You can read more on XML in many other places.

OpenG is a group which releases open source reusable LabVIEW code. There are many programs which were written using OpenG VIs, which can be very useful. You can read more at OpenG.

XControls are controls which have code behind them, so you can make a control which will be smarter and will also work at compile time, but they are relatively complicated and advanced. Some examples I have seen are a paint program (you drop it and you get paint tools which you can use and LED display string, where you input the strings and it automatically displays it as scrolling LEDs). You can find some tutorials and examples if you search here and in the LAVA forums.

___________________
Try to take over the world!
Message 2 of 7
(4,898 Views)
Hey labmaster,

JKI has just released a new toolkit called EasyXML that can easily handle arbitrary XML.  There are some examples that ship with this tool.  You can also see some examples on the screenshots page.

Regards,

-Jim

0 Kudos
Message 3 of 7
(4,609 Views)
Hi Jim,
what is the advantage of XML for data storage?
Jim

LV 2020
0 Kudos
Message 4 of 7
(4,379 Views)

lmtis wrote: Hi Jim, what is the advantage of XML for data storage?

Hi Jim,

(I'm having a Being John Malkovich moment.)

There are a variety of advantages and disadvanteges to using XML.  You might have some luck googling "xml advantages".

While, I'm not going to try to convince you to use XML over other formats, I'm happy to describe some reasons you might choose to use XML.  Here is a short list:
  • It is the generally accepted data format of the Internet
  • There are xml readers and writers for almost every language and platform, so it's easy to interoperate with other software and services
  • It is (mostly) human readable
  • It documents can reference other documents
  • It is extendable -- you can use it to define your own data formats
  • In LabVIEW, it's as easy as creating a cluster 😉
Best Regards,

-Jim Kring



0 Kudos
Message 5 of 7
(4,375 Views)
What is the difference between the Full and Trial versions of the EasyXML toolkit from JKIsoft?  I have looked around the JKIsoft website but havent found a rundown. 

Thanks
0 Kudos
Message 6 of 7
(4,312 Views)


@jmcbee wrote:
What is the difference between the Full and Trial versions of the EasyXML toolkit from JKIsoft?  I have looked around the JKIsoft website but havent found a rundown. 

Thanks



Hello,

The trail version of EasyXML is full-featured, but will present a periodic dialog, telling you that it is a demo version. This provides you with the ability to try out the full capabilities of the software.

Thanks,

-Jim
0 Kudos
Message 7 of 7
(4,305 Views)