05-16-2020 01:36 PM
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?
05-16-2020 03:17 PM
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
05-17-2020 11:24 PM
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.