Kostas

Members
  • Content Count

    6
  • Joined

  • Last visited

About Kostas

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I would like to know if it is possible to acquire more than one time the buffer on single buffer acquisition (acqmodeSingle) for continuous data after trigger. I want to aqcuire 10 times the buffer on frequency of 100MHz with 8192 buffer size.
  2. I would like to make a last question. If I want to run the AD2 on 100MHz dwf.FDwfAnalogInFrequencySet(hdwf, c_double(100000000.0)) and use the maximum buffer 8192 dwf.FDwfAnalogInBufferSizeSet(hdwf, c_int(8192)) that means that every buffer responds to 8192/100000000=81.92ns? So if I want to get values for 9ms i should write almost 100 time my buffer? Furthermore I want to use trigger so I must go to single scan since in other modes trigger is ignored?
  3. This image shows what I am trying to record with waveforms sdk. I used the code that you posted with slight differences but the results are not close to these which I get from waveforms. The device which I am trying to record runs at 8MHz. The sampling rate that I would like to get is 80MHz. Is it possible? What are the numbers for hdwf, nSamples, dwf.FDwfAnalogInFrequencySet(hdwf, ?), dwf.FDwfAnalogInFrequencyGet(hdwf, byref(?)). I want to record 8ms since trigger starts.
  4. Thanks a lot.The code was very helpfull. I would like to ask one more question. The difference between recording and normal acquisition is the FDwfAnalogInAcquisitionModeSet mode(acqmodeRecord-acqmodeScanShift)? Can normal acquisition base on time, not on buffer?
  5. I am using analog discovery 2. I am trying to acquire data (for 10ms) of first channel from trigger of second channel signal. this is a part of my code hzAcq = c_double(1075000) # 1,075MHz nSamples =8192 dwf.FDwfAnalogInChannelEnableSet(hdwf, c_int(0), c_bool(True)) #first signal (channel 1) dwf.FDwfAnalogInChannelRangeSet(hdwf, c_int(0), c_double(1)) dwf.FDwfAnalogInChannelEnableSet(hdwf, c_int(1), c_bool(True))#second signal (channel 2) dwf.FDwfAnalogInChannelRangeSet(hdwf, c_int(1), c_double(5)) dwf.FDwfAnalogInAcquisitionModeSet(hdwf, c_int(3)) # record dwf.FDwfAnalogInFrequencySet(hdwf, hzAcq) sRecord = nSamples/hdwf.value # 7.6ms dwf.FDwfAnalogInRecordLengthSet(hdwf, c_double(sRecord)) # -1 infinite record length dwf.FDwfAnalogInTriggerPositionSet(hdwf, c_double(-0.25*sRecord)) # -0.25 = trigger at 25% #set up trigger dwf.FDwfAnalogInTriggerAutoTimeoutSet(hdwf, c_double(10)) # 10 second auto trigger timeout dwf.FDwfAnalogInTriggerSourceSet(hdwf, c_ubyte(2)) # trigsrcDetectorAnalogIn dwf.FDwfAnalogInTriggerTypeSet(hdwf, c_int(0)) # trigtypeEdge dwf.FDwfAnalogInTriggerChannelSet(hdwf, c_int(1)) # channel 2 dwf.FDwfAnalogInTriggerLevelSet(hdwf, c_double(1.5)) # 1.5V dwf.FDwfAnalogInTriggerHysteresisSet(hdwf, c_double(0.01)) # 0.01V dwf.FDwfAnalogInTriggerConditionSet(hdwf, c_int(0)) # trigcondRisingPositive the first signal is on mV and the second is a signal on V ( 0-3.3 ) The voltage values that i acquire are not correct. Any suggestions?
  6. I am kind of new on electronics. I am trying to set a trigger connection to analog discovery 2(AD2) from matlab. Since matlab has a supporting package of AD2 for data acquisition tool, I tried to set a trigger with the function addTriggerConnection() but i got the message You cannot use "addTriggerConnection" with Digilent hardware. Is there any other suggestions on how to trigger data Recording from matlab data acquisition tool for AD2.