LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PDA constant wav file path?

I am working off the Play Wave PPC.vi example, trying to specify a constant file path so that the wav. file will be played without having to select it on the PDA.  I seem to rotate between error codes 6 and 7 as I make changes, but can't get anything to work.  Am I making a mistake on the file path, or could it be something else?  How would the correct file path start?  \My Device\My Documents....?
 
I could really use some help, thanks.
Ben.
 
 
0 Kudos
Message 1 of 5
(3,599 Views)

Hi Ben,

An easy way to determine the correct path is to use the File Dialog VI.  This VI opens the PDA file dialog and returns the path of the file that the user selects.  This should show you the path your PDA is looking for.  I believe that the original Play Wave PPC VI uses this method so you could just run the original VI and note the path that the File Dialog VI returns.  Try checking the path and let us know if the errors continue.

Hope this helps!
Megan B.
National Instruments

0 Kudos
Message 2 of 5
(3,581 Views)
I think I have the file path correct, but every time I enter it on my LabVIEW routine "C:" is automatically added to the beginning of the path.  I think this is the cause of my problems, but how do you stop this from happening?
0 Kudos
Message 3 of 5
(3,576 Views)
Hi Ben,
I've just finished some tests about this. I simply use "My Documents" and it works (e.g. "My Documents\test.txt").
Not yet tried with memory cards, I guess that "Storage Card\MyFolder" could work for the first card.

Paolo
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 4 of 5
(3,561 Views)

Hi Ben,

Have you tried using a string constant with the correct path in it, and then converting this string to a path and wiring the path to your File I/O VI?  This might be a good way to get around the appended "c:". 

Give that workaround a try and let us know how it goes!
Megan B.
National Instruments

0 Kudos
Message 5 of 5
(3,555 Views)