LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't play sound from array with RAW data

From this topic : http://forums.ni.com/t5/LabWindows-CVI/I-want-Example-FM-Receiver-for-RFSP-on-CVI-please/m-p/2811486

 

I can demodulate the signal that came from IQ data using Modulation Toolkit and collect message data in array.

then I export message array to txt file in ASCII format using ArrayToFile function and i can play it correctly in MATLAB by using sound command.

 

Finally , I try to play message signal directly through soundcard without using MATLAB but i'can't .

 

I try to learn in example in this forum [Ex. sndplay , CVIDsound etc. ]  but i can't fix it

 

CVIDsound is look pretty good but it is so complicate , i can't find the way to send my message array to play with Dsound.

 

Can you keep me the simple example to using Dsound or guide me to use it.

0 Kudos
Message 1 of 3
(4,352 Views)
你好: 请问在哪里有发帖的按钮,找了半天,也没法发布帖子,只有在这里说了,不好意思
0 Kudos
Message 2 of 3
(4,348 Views)

Hi,

 

Take a look at the following article as a starting point:

http://digital.ni.com/public.nsf/allkb/862567530005F09C8525643D004B34AC?OpenDocument

 

Specifically, notice the examples in the Related Links section.

 

It looks like our examples typically deal with playing WAV or other formatted audio file types from CVI.  It may be that you want to convert your data into a .wav file in order to more easily use it.  Otherwise, you may need to dig into the Windows SDK a little further to find lower level soundcard functions to do exactly what you want.

 

 

Regards,

0 Kudos
Message 3 of 3
(4,306 Views)