LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Music and LabView

Solved!
Go to solution

Hi everyone

 

I'm doing an application with music and I have a problem : when the application try to charge the music an error occur and say "Not enough memory to complete this operation"

 

I try two method to do it  first with the "Play Waveform" and secondly with the "System Exec.vi" but this two method don't work and i have the same error.

I know that is because my music is too long or big but i can't override this.

 

That here that I block.

Do you have any solution for avoid this problem ?

 

I let my VI with the VI1 for the first method and VI2 for the second.

 

Thanks you for your help =D.

Download All
0 Kudos
Message 1 of 7
(4,430 Views)

Sorry, wrong comment as your vi came up behind another that I was reviewing.  Should have a delete option under edit reply.

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
0 Kudos
Message 2 of 7
(4,415 Views)

Hi Quentin,

 

as both methods fail with the same error I guess your WAV file is just too big for your computer.

Solution: use a smaller WAV file instead…

 

I know that is because my music is too long or big but i can't override this.

So you already know why your VI fail!? But you try to load this WAV file anyway???

You might try to split the WAV file into smaller parts and load/play them one after the other!

(Hint: The function SoundFileReadSimple allows you to specify the number of samples to read and the position offset…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 7
(4,376 Views)

@GerdW wrote:

Hi Quentin,

 

as both methods fail with the same error I guess your WAV file is just too big for your computer.

Solution: use a smaller WAV file instead…

 

I know that is because my music is too long or big but i can't override this.

So you already know why your VI fail!? But you try to load this WAV file anyway???

You might try to split the WAV file into smaller parts and load/play them one after the other!

(Hint: The function SoundFileReadSimple allows you to specify the number of samples to read and the position offset…)


That is what you get for using expressvis  if you want to play a file play a file

Capture.png


"Should be" isn't "Is" -Jay
Message 4 of 7
(4,348 Views)

Hi GerdW

 

      You might try to split the WAV file into smaller parts and load/play them one after the other!

 

That here my problem, I don't want to split my wav file, so I search for another solution !

 

But if it's the only one solution, I will do it =/.

0 Kudos
Message 5 of 7
(4,314 Views)
Solution
Accepted by topic author QuentinBietiger

Hi Quentin,

 

I don't want to split my wav file, so I search for another solution !

Maybe "split" is the wrong word here: load your file in chunks as I tried to hint with the function and its parameters recommended above!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 7
(4,307 Views)

@GerdW wrote:

Hi Quentin,

 

I don't want to split my wav file, so I search for another solution !

Maybe "split" is the wrong word here: load your file in chunks as I tried to hint with the function and its parameters recommended above!


Oddly enough.  Isn't that exactly what Play File does?


"Should be" isn't "Is" -Jay
0 Kudos
Message 7 of 7
(4,304 Views)