10-31-2016 02:16 AM
Solved! Go to Solution.
10-31-2016 06:11 PM - edited 10-31-2016 06:30 PM
Hi,
Could you clarify what you mean by frequency? Are you looking to have different sample clock rate for the two different waveforms or the period of your waveform?
You can use the "SineWave" function to generate an array of data.
I hope this helps!
10-31-2016 07:57 PM
Hi, thuyanhl
Thanks for your reply.NI-6361 has two analog output terminals,ao0 and ao1.Now I want to generate SineWave with the frequency of 1.2kHz from ao0, and generate SineWave with the frequency of 50Hz from ao1.But beacause of the same clock, they always generate the same frequency.
Thank you for your time and help,looking forward to your letter!
11-03-2016 08:31 AM
Are you specifying the frequency in your GenSiveWave function? From what I can see in your code, it seems like both both sine waves have the same frequency "1.0/sampsPerCycle".
11-03-2016 07:44 PM
Thank you very much for your reply!
You are right.I have solved the problem last night by varying "1.0/sampsPerCycle".
Thank you again.