LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Get Raw Data From Sound Card (SDK)

Solved!
Go to solution

I've done a search on soundcards and alot of the forums have been helpful.  I just have a few quick questions.

 

I have a sound card (CardDeluxe http://www.digitalaudio.com/) plugged into the computer via PCI port.  My goal is to get raw waveform data from the card and plug and chug it into Analysis Functions in CVI.  i just don't know how to "talk" to my soundcard.

 

Obviously my main question is above, but to narrow down some concerns...

I presume I need the SDK libraries for this.  To have this, do I just need to install the MSN Help libraries?

Can this be done in the Base Version, or is the full CVI Package needed?

I have not done much low-level stuff, but looks like getting a wav file is needed.  I cannot use any outside applications as I would like to eventually create a program to automatically record and play at a precise time (syncing).

 

Thanks in advance.

0 Kudos
Message 1 of 5
(4,503 Views)

The Win32 SDK support is in the FDS only.

 

You can read about the API interface in MSDN, but finding non-CVI provided Windows SDK header files and export libraries that will work with CVI might be a challenge.

 

My understanding is that NI has "massaged" the Microsoft-provided (and free) SDK header and library files to ensure CVI compatability.  Otherwise, why would anyone bother buying the SDK support from NI?

 

NI used to massage the Win32 SDK help files, but now I think they simply provide the regular MSDN Windows SDK help files - NI can correct me if I'm wrong.

 

And there's overloading of some of the Widows SDK function names Vs. CVI library function names, you have to use the preprocessor to disambiguate these.

 

If you're willing to try building a CVI app with regular Microsoft Windows SDK import headers and export libraries, we'd all be interested in how it comes out - maybe we could all save $$$ and not have to buy the CVI FDS Smiley Wink

 

Menchar

 

 

 

 

0 Kudos
Message 2 of 5
(4,490 Views)

Menchar is generally correct. The only point I need to clarify is that most of the core SDK libraries are also available with the CVI Base Package. I don't know, however, if these include the library you need to use for your .wav files.

 

Once you know which functions you need to use, you can look them up in the Programmer Reference>>Compiler/Linker Issues>>Calling Interface to Win32 API Functions in LabWindows/CVI>>Availability of Interface to Win32 Application Programmatic Interface (API) Functions help topic to find out whether they're available in Base or FDS.

 

Luis

0 Kudos
Message 3 of 5
(4,460 Views)

Sounds good.  Ya I saw a list somewhere on NI's website.

 

Now I just need someone who knows how to talk to the soundcard and get it to record data to a wav file....

0 Kudos
Message 4 of 5
(4,457 Views)
Solution
Accepted by topic author ngay528

This website has what I was looking for.  His zip file contains an exe as well as is c file source code.

 

http://paulhoule.com/phsrec/index.php

 

Edit:

There is also some info here - http://forums.ni.com/t5/LabWindows-CVI/wav/m-p/235344

0 Kudos
Message 5 of 5
(4,363 Views)