キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Music and LabView

解決済み
解決策を見る

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.

すべてをダウンロード
0 件の賞賛
メッセージ1/7
4,648件の閲覧回数

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 件の賞賛
メッセージ2/7
4,633件の閲覧回数

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 件の賞賛
メッセージ3/7
4,594件の閲覧回数

@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
メッセージ4/7
4,566件の閲覧回数

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 件の賞賛
メッセージ5/7
4,532件の閲覧回数
解決策
受理者 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 件の賞賛
メッセージ6/7
4,525件の閲覧回数

@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 件の賞賛
メッセージ7/7
4,522件の閲覧回数