I am using a software analog trigger to acqure one waveform at the time. The code is as followed:
m_CWAI.GetStopCondition().SetType(cwaiSWAnalog);
m_CWAI.GetStopCondition().SetLevel(m_TriggerLevel);
m_CWAI.GetStopCondition().SetSource("1");
m_CWAI.GetStopCondition().SetPreTriggerScans(PreTriggerScans);
m_CWAI.GetStopCondition().SetMode(cwaiFalling);
m_CWAI.SetNScansPerBuffer(Scans);
m_CWAI.SetNScans(Scans);
m_CWAI.GetScanClock().SetFrequency(ScanRate);
m_CWAI.GetStopCondition().SetHysteresis (0.0);
m_CWAI.Configure();
m_CWAI.Start();
Basically the way the program works is that it will acquire one waveform at the time then stop data acquisition until the user presses the right keybord, then i
t will start data acquisition again. The program pretty much loops among start data acquisiton, acquired 1 waveform, stop data acquisition and wait for the right key.
My problem is that if I set a very small period of the waveform to be acquired (either small sampling rate or small record size or both), the program does not work consistingly. It does not start data acquistion when the right key was pressed. This was never a probelm if the period of the waveform was set long enough. What would be a problem?
Thanks.
Yajai.