Search the Community
Showing results for tags 'record'.
Found 4 results
I need to capture the signal which is must be sampled in 25Mhz for avoiding aliasing. But while I use record mode to capture it, WaveForms keep showing message "reduce sample rate". For 25Mhz sample rate, and 14 bit resolution, data rate is 350Mbps AD2 is using USB2.0 which should transmitter data up to 480Mbit/s. AD2 should continues record 25Mhz data, the only limitation is my PC RAM size. Is my understanding correct ?
Just recorded some logic data using my new Analog Discovery 2 on my Mac. Now I want to zoom in and look at the data. According to the tutorial there is suppose to be a "hot track" button that lets you zoom in but I don't see any such feature. So how do you zoom in? I attached a screenshot if it helps.
Hi I am using analogIN record for acquisition of the signal. The problem I encountered is the fact that the acquired signal is randomly delayed in with repetition of the measurements. (see fig attached, where a same measurement is performed several time. Starting point always differ). Is there a particular reason for it and is there an elegant solution except the dirty one which compares delays of different measurements and performs the delay shift operation. Many thanks in advance. I used AnalogIn_Record.py from the example library and analog discovery 2. thanks & cheers, m
I am a bit confused, in the following example i am using continiously the record mode and programmed a time.sleep(0.1) in my aquisition loop. So i would expect the new aquired samples should be the whole buffer size (nsamples = 15000) because there should be 50000000 new samples/s. But actual it is variating between ~150 -~ 8000 per loop. What i am doing wrong? #set samplerate libdwf.FDwfAnalogInFrequencySet(hdwf, c_double(50000000)) #set up acquisition libdwf.FDwfAnalogInChannelEnableSet(hdwf, c_int(0), c_bool(True)) libdwf.FDwfAnalogInChannelRangeSet(hdwf, c_int(0), c_double(5)) libdwf.FDwfAnalogInAcquisitionModeSet(hdwf, c_int(3)) #record libdwf.FDwfAnalogInRecordLengthSet(hdwf, c_double(0)) #wait at least 2 seconds for the offset to stabilize time.sleep(2) #begin acquisition libdwf.FDwfAnalogInConfigure(hdwf, c_int(0), c_int(1)) cSamples = 0 nSamples = 15000 for i in range(100): rgdSamples1 = (c_double*nSamples)() rgdSamples2 = (c_double*nSamples)() libdwf.FDwfAnalogInStatus(hdwf, c_int(1), byref(sts)) if cSamples == 0 and (sts == DwfStateConfig or sts == DwfStatePrefill or sts == DwfStateArmed) : # Acquisition not yet started. continue libdwf.FDwfAnalogInStatusRecord(hdwf, byref(cAvailable), byref(cLost), byref(cCorrupted)) cSamples += cLost.value if cLost.value : fLost = 1 if cCorrupted.value : fCorrupted = 1 if cAvailable.value==0 : continue if cSamples+cAvailable.value > nSamples : cAvailable = c_int(nSamples-cSamples) # get samples1 libdwf.FDwfAnalogInStatusData(hdwf, c_int(0), byref(rgdSamples1, 8*cSamples), cAvailable) results = np.array(rgdSamples1) XX = results[np.nonzero(results)] print(len(XX)) time.sleep(0.1)