Hi,
I am a newbie to DAQ and NI cards, I am using 6713 AO card, I was trying to run the C sample given by NI as I am going to use ANSI C. My object is to generate a waveform (may be sine or square); I could see a
"DAQmxCreateAOVoltageChan()" used to generate analog output but his was a straight waveform. When I went through the document I could see that there was another function
"DAQmxCreateAOFuncGenChan()" . This had some parameter constants mentioned about sine and sawtooth etc waves. I jus tried replacing the parameters by calling with the following parameters
"DAQmxCreateAOFuncGenChan(taskHandle,chan,"",DAQmx_Val_Sine,1000,10.00,0));" But that resulted in error.
Am I doing anything wrong? Do I have to change my approach needs to be changed. Can we generate a sine or sawtooth waveforms in a single above API? If we cannot what would be the steps. if we can generate what are the premliminary steps or api i need to call to make my API successful. I tried to a to study about the API... and i am still trying... Please do help me to get this done.
Thanks in advance,
Marutha