LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Create project from template failed with "badly formed pathname" error message

Hi,

 

I am trying to create a project from a custom template, but I am getting the following error message prompt:

 

-------------------------------------------------------------

LabWindows/CVI could not create

 

Test_Project

 

because of an error: Badly formed pathname

-------------------------------------------------------------

 

However, when I checked the target project directory, I see the project files are copied correctly.  I don't know if there is something missing from our custom templates?  Of, if there is something wrong with our custom template?

 

I am using LabWindows/9.0

 

Thank you.

 

Peggy

 

0 Kudos
Message 1 of 5
(4,936 Views)

did you check this and this ?

0 Kudos
Message 2 of 5
(4,919 Views)

Hi Peggy,

 

Did I understand you correctly that the files for the new project appear to have been created, but the error dialog still shows? In addition to Wolfgang's suggestions, take a look at the help section on New Project and File Templates. This describes everything that should be needed to create a custom template. Also, try to create a new, very basic custom template and make sure that you can use it successfully. If you can, start adding in the functionality of the original template, and test along the way. Hopefully either this new one will work once you finish, or you will see at which point it is breaking, and we can debug from there.

 

Best Regards,

 

John M

National Instruments
Applications Engineer
0 Kudos
Message 3 of 5
(4,889 Views)

 

Thanks for the tip.  I looked at the 'ConfigCVILogging.exe' output, but the only error I see in there is relating to the following:

 

---------------------------

[14:58:26.613] [ERROR] [NationalInstruments_CVI_Licensing::LicenseCommon::getAddOnRegistryInfo] [..\licmgr\LicenseCommon.cpp:83] Error reading licensing information from registry key 'SOFTWARE\National Instruments\CVI\9.1\AddOns\Real-Time'

---------------------------

 

One thing I did is to remove all files, except *.c, *.h, and *.prj from my template directory.  This seems working fine, created a project at the workspace.  When I to add in the *.cws, *.cdb file, LabWindow/CVI simply created something and then exit out without any error message.

 

I wonder if *.cws is not part of the template, would template missing any information? (i.e. search path, compiler setups, etc.)

 

Thanks.

 

Peggy

0 Kudos
Message 4 of 5
(4,883 Views)

Hi Peggy,

 

The workspace is mostly just a container that can hold multiple projects. The configuration settings are project-specific, so you should be OK without having the .cws as a part of your template.

 

John M

National Instruments
Applications Engineer
0 Kudos
Message 5 of 5
(4,825 Views)