10-17-2013 05:44 PM
Hey
First a little background on big picture (might be irrelevant) : I am recording signals from a rat's sciatic nerve using a multiplexer with 32 electrodes. These are then demultiplexed and filtered and inputted into an array with 32 rows.
What I am trying to do: While recording from the electrodes, I want to be able to choose a specific channel (currently using the index array function) and play that signal through the speakers in real time. The issue is after I index the array, I try to use the play waveform vi and it gives me an error saying "LabVIEW: (Hex 0x12C3) The sound driver or card does not support the desired operation." So I looked online and read that I should try and use the Generate Waveform function but that also gave me the same error. Any thoughts?
The file is too large for me to attach so I just attached a screenshot for now.
Thank you very much
10-18-2013
08:33 AM
- last edited on
11-07-2024
11:31 AM
by
Content Cleaner
Hi,
You configured an time interval (dt) of '2E-6' in the "Build Waveform" VI., which seems to be too high for your output device. When you double-click on the sound-output VI, you can see the maximum rates your output device supports.
Try using smaller values, or better: Use the Resample Waveform VI with an acceptable 'dt' to resample your waveform before it is wired to the output.
Regards,
Michael
04-02-2014 08:35 PM
I am actually running into the same sound card error. However, my sampling frequency is 1000Hz. and I am inputting a real time domain signal (EMG signal). So I am connecting a constant "0.001" [1/1000] to my dt of my build waveform. What can I do differently for the audio to be generated?
Specs of my output device:
Min Sample Rate (Hz) = 100
Max Sample Rate (Hz) = 200000
Resolution (bit) = 16
#Channels = 2
Thanks for the help.
04-04-2014 09:22 AM
hiba.nzm,
If you could provide a screenshot of your block diagram that would be helpful.
Regards,
Corey C.
Applications Engineer
National Instruments
04-05-2014 04:51 AM
Here is my program. I have red circled the part of the program which is responsible for the sound.
Basically two steps.
1) Take real-time data input into a build waveform with constant value of dt.
2) Connect build waveform output into play waveform vi.
Thanks For helping!
04-05-2014 02:57 PM
is your problem has been resolved by changing the value of dt ? what are setting you made in the play waveform vi parameters settings ?
04-05-2014 10:54 PM
Shouldn't my dt be inverse of my sampling rate? I tried a random value, it still didn't work. I have specificed above the parameters that the vi is set to. Its automatic and not manully set.
04-06-2014 02:06 AM
as far as my undersatnding , dt - sampling rate relation is dt=1/fs
04-06-2014 02:17 AM
04-06-2014 02:30 AM - edited 04-06-2014 02:31 AM
i have just made and test this vi on pc. my device specs are
min sample rate 8000
max 48000
resolution 16 bit
channels 2
it is running. i attach the snapshoty also. if not running on your pc then must some prob on sound side