Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Error in VC++

Greetings
 
I'm using PCI6229 with measurement studio and daqmx 8.5 drivers installed. I was trying to run some measurement studio examples in VC++ but it gives me an error, as follows:
 

1>Make sure that the file is not open by another process and is not write-protected.

1>MeasAngularPositionBufferedCont_ExtClk : error PRJ0006 : Could not open the temporary file 'c:\Program Files\National Instruments\MeasurementStudioVS2005\VCNET\Examples\DAQmx\Counter\Measure Position\MeasAngularPositionBufferedCont_ExtClk\Debug\RSP00000559842976.rsp'. Make sure the file exists and that the directory is not write-protected.

1>MeasAngularPositionBufferedCont_ExtClk : error PRJ0006 : Could not open the temporary file 'c:\Program Files\National Instruments\MeasurementStudioVS2005\VCNET\Examples\DAQmx\Counter\Measure Position\MeasAngularPositionBufferedCont_ExtClk\Debug\RSP00000659842976.rsp'. Make sure the file exists and that the directory is not write-protected.

None of the examples on the examples folder work, all of them give me the same error.

What am I doing wrong?

Thx.

0 Kudos
Message 1 of 4
(7,078 Views)
Hello ZainZeus!
 
It seems the problem is with the program itself having privileges to read the examples. The file that it cannot access is RSP00000559842976.rsp, I tried my own example and i didnt get any error. Let's try the following:
 
Try to repair the installation of the DAQmx driver, maybe the installation got corrupted and that is generating the error. Also make sure the version of Measurement Studio is the correct version for the Visual Studio you are using. Search in the following location for the examples:
 
C:\Documents and Settings\All Users\Documents\National Instruments\NI-DAQ\Examples\MStudioVC2005
 
Right click the main directory and make sure the read only option is not selected.
Please try all this and check if it works. In case it doesnt work, im attaching the same example (the one that works for me), please try to run in and verify if it works.
Have a gret day and let me know the outcomes!
Download All
0 Kudos
Message 2 of 4
(6,943 Views)
Hello Oswald
 
Thanks for your answer, I apologyze my delay
 
I did try reinstalling the DAQmx drivers before posting, On the other hand Im not pretty sure how to check if I have the correct version of Measurement Studio for visual studio, furthermore the following direction you put, does not match with the direction that the examples I have appear, i mean this:
 
''C:\Documents and Settings\All Users\Documents\National Instruments\NI-DAQ\Examples\MStudioVC2005''
 
Instead I have those here:
 
''C:\Program Files\National Instruments\MeasurementStudioVS2005\VCNET\Examples\DAQmx\''
 
I think that's because I have Vista instead XP, which is the one I suppose you have. Anyways I unlocked the folder from writting protection but I didn't work either.
 
Besides, I tried the example you sent, but it gives me an error about the windows.h file, I suppose that due to Vista security and other of its useless issues, I have to put it in the rigth place, but not Idea where that cuould be. Any Idea?
 
 


Mensaje editado por ZainZeus
0 Kudos
Message 3 of 4
(6,856 Views)

ok, the rsp file problem is solved, I just changed my user in windows vista to administrator, i did this because vista blocks acces to many system folders unless you enter as an administrator, damn vista!!. But it still gives me the windows.h error that I mentioned before on this thread and when I comment that part, to see what happens, it gives me the error in the next library on that same file I mean afxwin.h file, which comes with the example.

I'm trying to get rid of this by myself but some help would be helpfull

0 Kudos
Message 4 of 4
(6,763 Views)