03-04-2010 04:50 AM
Hi,
I use the sound file read function. It works well, I could set the duration of playing a wav file. I use it as a subvi in which in the main vi the user has to do something to get music. The problem is that he has always the same sound because I can't start the sound at other times than the beginning. I tried to use offset but the sound turns crazy.
Do you know a mean to pause the sound and when it is called back by the user, the sound plays at the time it stops before. Or if not if at least we could start the sound at different times than the beginning. I could use several wav files to do this but it is very long to do this for my purpose.
Thank you in advance for your help.
03-04-2010 05:55 AM
As a tip. Then I program in Labview I Always go to help in the toolbar, and then select Show context help. Do not be afraid to use the "detailed help" option in the context help. Now open your music 1 VI. Locate the "Sound file read.vi", and look at the function for the position mode, position offset inputs, and the offset output. By using shift registers and these variables you should be able to do that you want. You might have to use two shift registers. Both in the "main vi.vi" and in the "music 1.vi"
03-04-2010 05:56 AM
03-04-2010 10:05 AM
03-09-2010 07:58 AM
Here is the principals. Modify as you need.
03-10-2010 03:11 AM