From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVIXMLSaveDocument when using CVIXMLNewDocument

I'm using the CVIXML library.  When I use the CVIXMLNewDocument function it creates the handle to a new document, but a file name is not associated with it.  So, when I do CVIXMLSaveDocument it returns an error.

I'm using CVI 8.1.1 on XP.
0 Kudos
Message 1 of 2
(2,674 Views)
CVIXMLSaveDocument takes an output file path as an argument.  You can pass NULL if you created the document via CVIXMLLoadDocument and you want it to use the load path, but if you created the document from scratch, you must give it a path.

Mert A.
National Instruments
0 Kudos
Message 2 of 2
(2,671 Views)