LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Access is Denied to Documents and Settings when trying to access .wav files

Hello,

 

I am buliding the piano stairs that AshLu posted on the community and I am having problems with the code ( https://decibel.ni.com/content/docs/DOC-12384 ). If I try to use the .wav files that come with the download I get the error that they can't be found and access to C:\Documents and Settings is denied.       Error 7 occurred at Sound File Read Open.vi->Sound File Read Simple.vi->myDAQ8.vi

 

I have tried seaching File Explore for the Documents and Settings but it doesn't pop up.

I have also tried creating a File called Documents and Settings but then it says the file all ready exists and mereges them.

I have also tried replacing the built in .wav files with my own .wav files but then I get error waveforms have different dt values.

 

Any help would be apprecated.

Thanks

0 Kudos
Message 1 of 12
(4,011 Views)

In Windows XP, C:\Documents and Settings were where User Profiles, the set of files that defined the "environment" for each user (like the Desktop, My Documents, etc.) were stored.  In Windows 7, 8, and 10, this has been replaced by C:\Users.  Each sub-folder of this "Profile" location was "named" for the owning User, who is generally the only one with permission to access files within the folder.

 

Your example using .wav files saved in C:\Documents and Settings\Demodogs\Desktop\Staircase, which means that (a) it assumes Windows XP, (b) assumes that you are the user called "Demodogs" (and thus have access to the files stored on your desktop), and (c) you've saved the Wave files you need in a folder on your desktop called "Staircase.

 

To fix this, first you need to find the folder called "Staircase".  Let's assume that it is in your LabVIEW Data folder inside a folder called "Play Notes".  Let's further assume you are running on Windows 7, 8, or 10 and that your User Name is "Iceman".  Change the Sound Paths to start C:\Users\Iceman\Documents\LabVIEW Data\Play Notes\Staircase\, and the name of the .wav file.

 

Bob Schor

0 Kudos
Message 2 of 12
(3,996 Views)

It didn't work.

I used File Explorer to try and find Staircase or Play Notes and they don't exist. This means there is no Play Notes\Staircase in the \LabVIEW Data.

 

Sorry for not clarifing. I am using Windows 10 and the User Name is Iceman.

 

Any other ideas?

0 Kudos
Message 3 of 12
(3,991 Views)

Aha!  I didn't realize the Zip file you attached was the entirety of the original submission.  My comments still apply -- I can tell you the OS the original Author used, the logon name, and the folder and filename he (or she) used to save the .wav files.  However, the author did not attach the wavefiles, but left the following statement:  "The waveforms for each note are read in from separate WAV files. These WAV files can be replaced with any chosen by the user."

 

So now you need to create your own Wave Files and store them someplace.  Use the comments from my previous post to change the File Paths so they point to your WAV files instead of to the Files that exist on the original Author's Windows XP PC (to which you don't have access).

 

Bob Schor

Message 4 of 12
(3,982 Views)

Okay that works but now I'm getting the error:

 

Error -1802 occurred at Add in PlayNote8.vi:4570001->Main Stair VI.vi

Possible reason(s):

LabVIEW: (Hex 0xFFFFF8F6) Waveforms have different dt values.

 

I figured out the dt value to be 2.3E-5 but it still says that they have different dt values

0 Kudos
Message 5 of 12
(3,976 Views)

How did you come to that dt value?

 

If you're looking at the original value from the application and adding your own wav, it's quite possible your wav is sampled differently and wouls have a dfferent dt

0 Kudos
Message 6 of 12
(3,950 Views)

I got that dt value by looking at the Block Diagram at runtime.

Although it now says a different number that doesn't work

 

 

0 Kudos
Message 7 of 12
(3,943 Views)

EBsaibess_0-1687345974123.png

I copied a vi Library i use to work with and i modify the path but still getting this output even though i change the path. Anyone can help?

0 Kudos
Message 8 of 12
(1,010 Views)

Hi E.,

 


@E.Bsaibess wrote:

I copied a vi Library i use to work with and i modify the path but still getting this output even though i change the path.


Are you still using WinXP?

Which library do you work with?

What exactly did you modify?

Where does the error come from? When does it pop up?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 12
(1,005 Views)

I am using Windows 10 and have installed LabVIEW 2023. I have an old LabVIEW file that I am attempting to run. Its purpose is to open a folder containing thousands of text files. The LabVIEW file is designed to process each file and extract the data.

The error occurs when I click on the icon of path save that allows me to save the calculated file.

 

EBsaibess_0-1687347315412.pngEBsaibess_1-1687347337840.png

 

0 Kudos
Message 10 of 12
(995 Views)