07-26-2010 10:46 PM
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
07-27-2010 04:18 AM
07-27-2010 04:45 PM
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
07-27-2010 05:24 PM
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
08-02-2010 10:39 AM
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