LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sound Acquisition using Sound blaster Play 2

Hi All,

 

I have been trying to acquire sound data over Sound blaster play 2 hardware. However, I'm getting below error while running the vi.

 

Error 4823 occurred at Sound Input Start.vi->Continous Data Acq_bkp2.vi->Sound Parallel Run.vi->Sound Parallel Run.vi.ProxyCaller

Possible reason(s):

LabVIEW: (Hex 0x12D7) You cannot perform this operation without an active task. Ensure that a task is active and try again. An input task might stop running if the input buffer overflows. Overflow occurs when the data is not read fast enough.

 

The parameters used are as follows.

Sampling Rate: 12000 Samples/sec

Samples per channel: 1000.

 

I have done same code with NI USB 4431 which was pretty straight forward.

 

In current scenario, I'm using native sound acquisition vi's in labview. 

 

I have tried reducing sampling rate but after Sound Start Input.vi, the code gets stuck in Sound Input.vi for a few seconds and throws fore mentioned error.

 

Can anyone please help me in this?

Certified LabVIEW Architect
System Test Architect
Electrical Engineering
JLR
0 Kudos
Message 1 of 3
(2,047 Views)

Your problem is either your Hardware (I don't happen to have a Sound Blaster Play 2), your Software (which I can't comment on, because you didn't attach all of the VIs (not pictures, but the actual code) you have written that "doesn't work" (hmm, I wonder if that's the problem), or your PC/Windows system.

 

Have you tried the sample Sound VIs that come with LabVIEW and are designed to play little sounds through your PC's speaker/headphones?  Does "Beep.vi" produce a "Beep" when you run it?

 

Does your Sound Blaster show up in MAX?  [It might not -- it might just be part of your PC's inherent Sound system -- we can't tell from where we are sitting ...].

 

Bob Schor

0 Kudos
Message 2 of 3
(2,014 Views)

I have fixed the issue. Turns out, the taskID was getting stopped since hardware was not able to acquire the signal as fast as expected. Tried changing no of channels in config vi from 2 to 1. Now, data is being acquired. 

 

However, it is not as accurate(some noise offset is present) as NI 4431 which is expected behavior.

Certified LabVIEW Architect
System Test Architect
Electrical Engineering
JLR
0 Kudos
Message 3 of 3
(1,962 Views)