• Content Count

  • Joined

  • Last visited

  1. Thank you again attila. Yes that is what I had in mind. This feature would really be great, as the pulses rate that I can acquire right now is very low for our needs. I am using the AD2 to read radiation detectors pulses that are very short pulses produced at random times. The pulses rate that I would like to achieve is on the order of the kHz.
  2. Hello, again. I am investigating the triggering options of the AD2, and their relationship with the buffer. As far as I understood the acqmodeSingle records only in the first N samples of the buffer, when a trigger is detected. While acqmodeScan* acquire continuously, but are limited to a 1 MHz acquisition rate. I would like to acquire single pulses that arrive at random times. The pulses are just 2 ┬Ás wide and I need to use a sampling frequency of 100 MHz. So I have been using the acqmodeSingle and I poll the AD2 as fast as possible. The problem is that since only the first N sa
  3. Dear attila, thank you for your quick answer! I am acquiring using an analogue channel as the trigger in normal mode, with a sampling rate of 100 MHz. According to the documentation I set FDwfDigitalInAcquisitionMode to acqmodeSingle; FDwfAnalogInTriggerSource to trigsrcDetectorAnalogIn; FDwfAnalogInTriggerAutoTimeout to zero; FDwfAnalogInBufferSize to N. Would this mean that only the first N samples in the buffer would be written for each trigger? In this case I would have to poll the AD2 faster than the trigger rate. Is this right?
  4. Hello all, I am trying to read data from an Analog Discovery 2, but I am a bit confused by the FDwfAnalogInStatusData16() function. I would prefer to have the raw integer data from the AD2, as I want to histogram them and I would have to convert back the doubles to integers. On the include file of the C API it is written DWFAPI BOOL FDwfAnalogInStatusData16(HDWF hdwf, int idxChannel, short *rgu16Data, int idxData, int cdData); and I do not understand the difference between idxData and cdData. I tried to guess from the buffer sizes with no success. Reading from the AD2 I