Some courses and learning paths on NI Learning Center may not appear on learner dashboards. Our team is actively investigating.

If you encounter access issues, please contact services@ni.com and include the learner’s name, email, service ID or EA number, and the list of required courses.

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
(3,120 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
(3,117 Views)