06-18-2009 11:04 AM
06-19-2009 02:51 PM
Hi Joncombat,
You should be able to do this with your 6070E card. Unfortunately, I did not find any CVI examples through my search either.
06-29-2009 09:52 AM
06-30-2009 04:59 PM
From looking at that labview example DTMF is a combination of two tones. Here is a starter application that combines two sine waves of different frequencies. You can combine this technique with DAQmx to output a DTMF signal. Let me know if you have any questions, also if you get done with your project, and no one has created one yet...a DTMF example for CVI would be a perfect fit in the community.
http://decibel.ni.com/content/docs/DOC-5472
07-01-2009 08:32 AM
07-01-2009 10:10 AM
Open up the example finder by going to Help » Find Examples inside of CVI. Then looking at the example ContGen-IntClk.c inside of the function GenSineWave around line 229 you will see that in the example they are building an array:
for(;i<numElements;++i) sineWave[i] = amplitude*sin(PI/180.0*(*phase+360.0*frequency*i)); *phase = fmod(*phase+frequency*360.0*numElements,360.0); }
and passing it back to the data variable. Then then passing the data variable to:
DAQmxErrChk (DAQmxWriteAnalogF64(gTaskHandle,sampsPerBuffer,0,10.0,DAQmx_Val_GroupByChannel,data,&written,NULL));
DAQmxWriteAnalgoF64 will then output whatever is in the data variable to your card, at whatever rate you specify in DAQmxCfgSampClkTiming.
If you're unfamilliar with DAQmx programming in CVI check out this example on using the DAQmx Assistant in CVI.
07-02-2009 06:03 AM
07-07-2009 12:05 PM
07-08-2009 01:02 PM
I have the following array
for(i=0;i<1000;i++)
{
resultant_sinWave[i]= sin(i*2*3.14*1209/8000) +(sin(i*2*3.14*697/8000));
}
It appears to be the tone "1" when graphed on the pc. When I try and output it to the daq the tone is wrong/noisy
How do I set the timing up for a frequency that is undetermined?
07-08-2009 02:02 PM