Jump to content

Oleg

Members
  • Posts

    5
  • Joined

  • Last visited

Recent Profile Visitors

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

Oleg's Achievements

Newbie

Newbie (1/4)

0

Reputation

  1. Thank you @attila for the feedback. However, I do not seem to get the desired sample rate in such a burst mode. Here's the approach I'm using (based on examples): #set up acquisition dwf.FDwfAnalogInFrequencySet(hdwf, c_double(10000000.0)) dwf.FDwfAnalogInBufferSizeSet(hdwf, c_int(1000000)) dwf.FDwfAnalogInChannelEnableSet(hdwf, c_int(-1), c_int(1)) dwf.FDwfAnalogInChannelRangeSet(hdwf, c_int(-1), c_double(5)) dwf.FDwfAnalogInAcquisitionModeSet(hdwf, acqmodeSingle) dwf.FDwfAnalogInRecordLengthSet(hdwf, 1000) dwf.FDwfAnalogInBuffersSet(hdwf, 100) dwf.FDwfAnalogInTriggerAutoTimeoutSet(hdwf, 0) # disable auto trigger dwf.FDwfAnalogInTriggerSourceSet(hdwf, trigsrcDetectorAnalogIn); # one of the analog in channels dwf.FDwfAnalogInTriggerTypeSet(hdwf, trigtypeEdge) dwf.FDwfAnalogInTriggerChannelSet(hdwf, 0) # 1nd channel dwf.FDwfAnalogInTriggerLevelSet(hdwf, c_double(1.0)) # V dwf.FDwfAnalogInTriggerConditionSet(hdwf, DwfTriggerSlopeFall) dwf.FDwfAnalogInTriggerPositionSet(hdwf, 0) time.sleep(2) print("Starting oscilloscope") dwf.FDwfAnalogInConfigure(hdwf, c_int(1), c_int(1)) tStartTotal = time.time() for cFrame in range(0, 10): tStartFrame = time.time() while True: dwf.FDwfAnalogInStatus(hdwf, c_int(1), byref(sts)) if sts.value == DwfStateDone.value: break time.sleep(0.001) print("Acquisition done") tEndWait = time.time() dwf.FDwfAnalogInStatusData(hdwf, 0, rgdSamples, nSamples) # get channel 1 data tEndGet = time.time() #plot window dc = 0 #sum(rgdSamples)/len(rgdSamples) print(f"Time wait={tEndWait-tStartFrame}, total={tEndGet-tStartFrame}") tEndTotal = time.time() tTimeOverall = tEndTotal - tStartTotal print(f"Time overall={tTimeOverall}, {tTimeOverall/nFrames} per each of {nFrames} frames, {nFrames*nSamples/tTimeOverall/1000000} MS/s") dwf.FDwfDeviceCloseAll() plt.plot(numpy.fromiter(rgdSamples[:6000], dtype=float)) plt.show() This outputs: ... Acquisition done Time wait=0.1982564926147461, total=0.2032620906829834 Time overall=2.1467978954315186, 0.21467978954315187 per each of 10 frames, 4.658100336915946 MS/s 1. Acquisition time is about 0.2 sec for 1M samples at 10MS/s, not 0.1 sec. Without AnalogInBuffersSet it is even slower. 2. Also, it looks that the acquisition is continuous for 1M samples, not 1000 waveforms 1000 samples each. I try to set AnalogInRecordLengthSet for that, but with no success. How do I record by 1000 samples, and then transfer in larger batches?
  2. I need to record bursts of 1000 samples (10ms) from AnalogIn at a sampling rate of 10MS/s, triggered by another AnalogIn channel. After that there is a dead time of another 10ms before the next trigger. I'm working with WaveFormsSDK. What is the preferred more of operation for such a task - Single Mode or Record Mode? Single Mode seems relevant, but I have a feeling that waiting for trigger status takes too long. Record Mode seems to ignore the triggers, so I'll have to just record continuously (which is an option). Also, which interface should I use for the best throughput: USB or Ethernet?
  3. Thanks, that was indeed the case! After removing J15 the device boots, shows Digilent ADP3450 in device manager and is visible from WaveForms.
  4. Hi @Fausto, I am using Windows 11 (non-virtual environment). Tried two computers and three USB cables including the one supplied with the device (with indicated type B port), I confirm I am using the original power supply. Upon connecting, I see "Generic USB Hub" and "USD Serial Converter" appearing, but no "Digilent" or "Unknown device" appears. @attila, following your advices in other topics I tried connecting to the serial terminal (115200 baud, 8 bit, 1 start, no parity) with putty. There are no messages upon pressing reset button (of course if I power down the device the connection gets closed). Also no LED activity: it just stays on.
  5. Hi, After unpacking our new ADP3450 and installing WaveForms 3.21.2, I cannot connect them one to another. Powered the device and switched on (green power LED turns on). Connected by USD cable, but WaveForms fails to detect the device, showing only DEMOs. Device Manager shows new devices, though no Digilent of Unknown devices. OK USB USB Serial Converter USB\VID_0403... OK USB Generic USB Hub USB\VID_0424... Upon connecting to USB Serial converter with putty it remains silent after pushing reboot button. No blinking LEDs, too. Are there more troubleshooting options?
×
×
  • Create New...