LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Error opening sample program.

Solved!
Go to solution

 

CVI Popup window states:

 

Unable to open workspace file "c:\..\..ChangeDetectionEvent.cws" (The tag "version" is missing from the section [Workspace Header] or it has no value.) 

To edit the workspace file in a LabWindows CVI source window you must rename the file so that it has an extension other than ".cws" .

 OK?

 

I tried reloading the sample programs from the disc but it still happens.  It seems not to occur with other sample programs.

What do I do?

 

0 Kudos
Message 1 of 6
(3,922 Views)

Hi CVIJoe,

 

What version of CVI are you using? Also, please tell me where the example is located on your machine This seems like a problem with the example itself rather than CVI since all the other examples are working, but its definately strange that the on disc file didn't work either.Once I get thatadditional information from you, I will take a look at the correct file to see what could be going on. Thanks!

Al B.
Staff Software Engineer - TestStand
CTA/CLD
0 Kudos
Message 2 of 6
(3,899 Views)

Hi Al,

 

I'm using CVI version 8.5.1.  The sample's path is c:\Documents and Settings\All Users\Documents\National Instruments\CVI\samples\DAQmx\Events\Signal\Change Detection\Read Dig Chan-Change Detection Event\ReadDigChan-ChangeDetectionEvent.cws .

 

Seems pretty long too me, could that be it?  I reinstalled the CVI samples from the Installation CD.  It's path is D:\Parts\CVI\Samples\CVISamples.msi .

 

Thanks for the quick reply.

0 Kudos
Message 3 of 6
(3,876 Views)
Solution
Accepted by topic author CVIjoe

Hi CVIJoe,

 

I think your file is somehow corrupted, and the reinstall is not overwriting it.  I found the file on my machine, and it contains the version tag mentioned in the error.  I have attached my file, so go ahead and try replacing your .cws file with this one, and let me know what happens.  Hope this helps!

 


Al B.
Staff Software Engineer - TestStand
CTA/CLD
0 Kudos
Message 4 of 6
(3,874 Views)

Replacing your .cws with mine worked.  I'm able to open the workspace and run the app in debug mode.   However I'm getting a NON-FATAL RUN-TIME ERROR on function DAQmxCfgChangeDetectionTiming (return value = -200077) when I start acquiring samples. Maybe I should start another thread for this problem? 

 

Thanks again for the quick reply,

 

0 Kudos
Message 5 of 6
(3,869 Views)

Hi Joe,

 

This error seems to be related to an incorrect value for AI.max or AI.min.  the following article addresses this error:

 

http://digital.ni.com/public.nsf/allkb/440EB533229211CD8625711C007E61B3?OpenDocument  

 

If this does not fix the problem, creating a new post in the DAQ forum would be the best way to get an answer.  Thanks!

Al B.
Staff Software Engineer - TestStand
CTA/CLD
0 Kudos
Message 6 of 6
(3,851 Views)