LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

xml files handling

hy i'm trying to open a xml file and get it's contents:
tags and values between the tags
how can i do that
thanks
0 Kudos
Message 1 of 6
(4,168 Views)
xml files are pure text files, basically.
you can open/read them as any other text files, line by line (fopen(), fgets()...).
of course, you will have to parse them afterwards, to extract the content of interest.


--
Once the game is over, the king and the pawn go back into the same box.
0 Kudos
Message 2 of 6
(4,147 Views)
Hi,

CVI ships an instrument driver, cvixml.fp, which is built on top of Microsoft's MSXML.  It can be used to more easily read/write xml files.  The fp is found in the toolslib\toolbox folder.

Hope this meets your needs.

Mert A.
National Instruments
Message 3 of 6
(4,140 Views)

Hi Mert A.,

I am having a similar problem. I have used a 'wrapper' (written by our IT department) to get access to the contents of an XML file having created an active X server in CVI.

However, I think that this would be much neater if I used the functionality within CVI directly. I have version CVI 7.1.1 Base package, but have tried to find the toolslib\toolbox folder without success. I have even re-installed the software to make sure that it was completely installed, but the option still appears to be unavailable.

The cvixml.fp file cannot be found by a search of my hard drive, so I wonder if you can advise me how to get access to this functionality.

Best regards,

SiBucko

 

0 Kudos
Message 4 of 6
(4,041 Views)
Hi SiBucko,

The toolslib directory should have been installed directly under you CVI directory.  If you installed CVI to the default location, you would expect to find C:\Program Files\National Instruments\CVI71\toolslib\toolbox\cvixml.fp.  Check the Library tree (or the Library menu) and make sure that "Programmer's Toolbox" shows up at the top level.  The toolbox.fp (which is located in toolslib\toolbox as well), by default, is added to the list of libraries to load at startup.  If you have this library, then you should also have cvixml, though cvixml is not loaded by default.  You would have to go to the Instrument menu and load it manually from there.

If the toolbox directory still can't be found, I'd be very curious to find out what is going on.

Mert A.
National Instruments
0 Kudos
Message 5 of 6
(4,034 Views)

Thanks for your help.

The re-installation must have worked because the cvixml.fp file was not on my hard drive before, but is now.

Thanks for the information on where to find it though.

 

0 Kudos
Message 6 of 6
(4,005 Views)