Hello Everyone.
I am trying to generate the Pulse as below;
I have seen and understood an example to generate a pulse waveform "GenDigPulseTrain_Continuous".
However, I can not control the offset of the pulse train.
Although the function gives me "initial delay(The amount of time in seconds to wait before generating the first pulse)",
I can not shift "t_dead" cycle.
/*01.Frequency Control*/
// The units to use to define pulse frequency.
m_pTaskWrite->COChannels.CreatePulseChannelFrequency(vecstrings[0]/*LPCTSTR counter*/,
"PWM_C0_CH_HIGH"/*LPCTSTR nameToAssignChannel*/,
DAQmxCOPulseFrequencyUnitsHertz,
DAQmxCOPulseIdleStateHigh,
dDeadTime,
m_nFncFrequency/*frequency*/,
prDuty.second/*dutyCycle*/);
// The units to use to define pulse frequency.
m_pTaskWrite->COChannels.CreatePulseChannelFrequency(vecstrings[1]/*LPCTSTR counter*/,
"PWM_C0_CH_LOW"/*LPCTSTR nameToAssignChannel*/,
DAQmxCOPulseFrequencyUnitsHertz,
DAQmxCOPulseIdleStateLow,
dDeadTime/**2 + (prDuty.second *dCycleTime)*/,
m_nFncFrequency/*frequency*/,
prDuty.second/*dutyCycle*/);
Please let me know how I solve this problem.
Thank you