ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I programmatically create and save an empty project?

I can programmatically create an empty project, but when I drop an invoke node on the project, select "Save", and wire in the desired path, it results in an "Error 1".  I am getting the error on the "Save" invoke node (An input parameter is invalid.)  The only input is the path, which is correct.  What am I doing wrong?  Also, how can I specify a name for the project?

Greg
0 Kudos
Message 1 of 4
(3,241 Views)
0 Kudos
Message 2 of 4
(3,232 Views)

I think the problem is that you use the current path and strip off the path the current VI's name.  This leaves you with a path that has no filename to save it to.  Put in a build path after it where you build in a project name with a .lvproj extension.  When I did that, the error went away.

Message Edited by Ravens Fan on 08-08-2007 11:36 PM

0 Kudos
Message 3 of 4
(3,211 Views)
Well, that was easy enough.  Thanks Raven Fan!
0 Kudos
Message 4 of 4
(3,195 Views)