LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Snd_Read_Wave_File with DAQCard-60036E

I generated a *.wav file on MathLab I want to play with DAQCard-6036E.

It seems like Snd_Read_Wave_File is the way to go, but I cannot make them work together. Any idea would be greatly appreciated.

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

Hello Siz,

Thanks for contacting National Instruments. 

The maximum analog output update rate for the DAQCard-6036E is 1000 samples/second and is also system dependent.  This can be seen in the specifications sheet for the device.  This is due to the fact that there is not a FIFO for analog output tasks.  This update rate will limit the timing of your wave file. 

I see that you are using the function Snd_Read_Wave_File.  Will you be using this on a PDA?  Please let me know if you are using DAQmx Base for your application.  What issues are you running into with programming your device for analog output? 

Regards,
Browning G
FlexRIO R&D
0 Kudos
Message 2 of 4
(5,078 Views)
 

Thank you for your reply.

 

 

 

  1. For some reason I cannot find examlpes\PDA in my LabView 8.2\examples\PDA, so I guess I am not using it.
  2. I am trying to play wave from MathLab (attached) using “PlayWave” example from here: [link removed]
  3. Currently rating in MathLab file is “Fs = 44100”, but I can change it, if I know what to do.
  4. Attached is a file where I created waveform using formula and playing it using DAQ Assistant. Now I do not need formula, but just a way to input data from .wav file created in MathLab (3). 

 

 

 

Your help is greatly appreciated,

Natalia

 

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

Hello Natalia,

While several express VIs are supported in the LabVIEW PDA module, the DAQ Assistant is not supported.  Please see the tutorial Express VIs (PDA Module, Touch Panel Module) for more information. 

To control a DAQ device from your PDA, it is necessary to have DAQmx Base components installed onto the PDA.  Since you are using LabVIEW PDA 8.2, it will be necessary to have DAQmx Base 2.2.  The install.txt file for this driver shows how to install the necessary driver components to the PDA.  This API is similar to the DAQmx AP; however, tasks must first be configured in the DAQmx Base Configuration Utility before being run on the PDA. 

The VI “SO Write” will output an array of sound data over the built-in sound device on your PDA.  This sound will be output over the internal speaker or headphones.

Regards,
Browning G
FlexRIO R&D
0 Kudos
Message 4 of 4
(4,843 Views)