10-30-2006 03:17 AM - edited 10-30-2006 03:17 AM
Hi
I am having the smple rate problems using a 9233. The sampling as previously discussed elsewhere on the forum is an integer division of 50kS/s. I wish to write the input channels to Microsoft ".wav" files using the standard SV Toolkit vi however it writes asumming the waveform is 44.1kS/s or the nearest integer division!
I have used the resampling vi and this does not help since regardless of which "dt" value is used in the resampling the timescale is "respected" and the resulting waveform is still wrong.
I have a 1000 Hz microphone calibrator playing into a high quality microphone connected to the 9233 and all the realtime S&V vi's are showing correct amplitude and frequency. The recorded wave file is written with RIFF header information saying 44,100 Hz using various RIFF reading software and therefore it always plays back on all players at 88.2 % of the speed or frequency!
Has anybody managed to solve this problem yet?
Can NI please correct the S&V Toolkit vi's since they are intended to be used with the DAQmx?
I have posted on the DAQ hardware forum last week but there has been no response, there may be more traffic here and I have to issue this as a working tool.
http://forums.ni.com/ni/board/message?board.id=250&message.id=25413
Many thanks for any help that you can offer.
Message Edited by Midlothian on 10-30-2006 03:19 AM
10-30-2006 04:57 AM - edited 10-30-2006 04:57 AM
Message Edited by Midlothian on 10-30-2006 05:08 AM
10-31-2006 02:33 AM
10-31-2006 04:35 AM - edited 10-31-2006 04:35 AM
Hi,
Which VI did you use to convert to wav file? Have you tried the 'SVXMPL_WAV Power Spectrum.vi ' to read the wav file back? Will it be ossiblefor you to attach a small (2sec) wav file thus created?
Kallis
Message Edited by Kallis on 10-31-2006 04:37 AM
10-31-2006 05:04 AM - edited 10-31-2006 05:04 AM
(please change the extension back to .wav of course)
Message Edited by Midlothian on 10-31-2006 05:08 AM
Message Edited by Midlothian on 10-31-2006 05:10 AM
10-31-2006 07:36 AM
Hi,
You were right about the 50kS/s limit. So I tried to simulate a signal with 10Hz, 20hz & 1000Hz(for lack of card) and wrote it to the wav file. Here I used the 'resample Waveforms (continuous).vi. As you an see I gave the dt as (1/44100). After this when I tried to read the wav file back using the SVXMPL_Wav power Spectrum.vi, I got the correct results(see figure). Are you using the same resample VI?
Kallis
10-31-2006 08:58 AM
10-31-2006 11:05 AM - edited 10-31-2006 11:05 AM
Message Edited by Midlothian on 10-31-2006 11:11 AM
10-31-2006 11:26 AM - edited 10-31-2006 11:26 AM
I got some probes to prove this point.
I used dt = 2e-5 and dt = 2.26757e-5 to make the point that the resampling respects the timescale.
Looking at 1 ms duration on the probes you get a full cycle in both "dt" cases. This is of course correct for 1 kHz input.
The problem of the wave file been written with an incorrect rate seems to be happening later in the process.
Message Edited by Midlothian on 10-31-2006 11:28 AM
Message Edited by Midlothian on 10-31-2006 11:29 AM
10-31-2006 03:00 PM