-
Posts
6,473 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Gallery
Everything posted by attila
-
-
Analog Discovery Pro Logger with script
attila replied to Albertu95's question in Test and Measurement
Hi @Albertu95 You could use the following: print(Scope.Time.taken.toISOString()); print(Scope.Time.taken.toISOString().replace('-','').replace('-','').replace(':','').replace(':','').replace('T','').substr(0,14)); var dt = Scope.Time.taken; print(dt.getUTCFullYear()+""+ (dt.getUTCMonth()<9?"0":"")+(dt.getUTCMonth()+1)+ (dt.getUTCDate()<10?"0":"")+dt.getUTCDate()+ (dt.getUTCHours()<10?"0":"")+dt.getUTCHours()+ (dt.getUTCMinutes()<10?"0":"")+ dt.getUTCMinutes()+(dt.getUTCSeconds()<10?"0":"")+dt.getUTCSeconds()); // or yyyy-MM-ddTHH.mm.ss.fffZ Scope.Export("~/Documents/albertomeasure/output/"+(Scope.Time.taken.toISOString().replace(':','.').replace(':','.'))+".csv"); -
-
Connecting Impedance anlyser to multi channel multiplexer
attila replied to H_M's question in Test and Measurement
Hi @H_M The newer software versions let you use the free DIO lines for custom purpose, like to control relays or analog switches. -
Analog Discovery 2 Not Recognized by Computer
attila replied to Kelsi Terry's question in Test and Measurement
Hi @Kelsi Terry The "Device Descriptor Request Failed" could indicate USB contact issue or damaged USB controller. Try using the original USB cable the device came with or other cables you have at hand, try different USB port, powered hub.- 5 replies
-
- analog discovery 2
- troubleshoot
-
(and 1 more)
Tagged with:
-
Adjust Digital IO system frequency in Python API
attila replied to HarissonJones's question in Test and Measurement
Hi @HarissonJones Use like: dwf.FDwfAnalogIOChannelNodeSet(hdwf, c_int(0), c_int(6), c_double(83360000));- 29 replies
-
- digital discovery
- python
-
(and 1 more)
Tagged with:
-
Adjust Digital IO system frequency in Python API
attila replied to HarissonJones's question in Test and Measurement
Hi @HarissonJones dwf.FDwfDeviceParamSet(hdwf, DwfParamFrequency, c_int(83360000)) # 8x 10.42MHz dwf.FDwfDigitalOutEnableSet(hdwf, c_int(0), c_int(1)) # DIO (0) 24 dwf.FDwfDigitalOutDividerSet(hdwf, c_int(0), c_int(4)) # /4 dwf.FDwfDigitalOutCounterSet(hdwf, c_int(0), c_int(1), c_int(1)) # /(1+1)- 29 replies
-
- digital discovery
- python
-
(and 1 more)
Tagged with:
-
Hi @Brendan Simon In newer software version the state output can be disabled, so the DIOs can be reused from StaticIO or Logic Analyzer. With the WF SDK/API use DwfDigitalOutTypeState for internal loopback and DwfDigitalOutTypeROM for IO.
-
4 Channel Waveform Generator & 4 Channel Scope
attila replied to Brendan Simon's question in Test and Measurement
Hi @Brendan Simon The devices and instruments can be synchronized using the trigger IOs. The ADP3X50 also supports reference clock IO. The Eclypse Z7 can be loaded with 2 Zmods providing 4 Scope or 4 AWG channels or 2/2. Each device can be controlled with separate instances of WaveForms application or custom app/script which opens multiple devices and configures the needed cross-triggering, controls generator and capture... -
Using Analog Discovery 2 to simulate HC-SR04
attila replied to lokobob99's question in Test and Measurement
Hi @lokobob99 Sorry but I'm not familiar with this sensor. -
Analog Discovery Pro ADP3450 not visible in Waveforms
attila replied to GlennCB's question in Test and Measurement
Hi @GlennCB On the UART it should print host detect, "USB Connect 1" after "Running". It is probably a IC53-USB3320C/R353 fault. Please ask for replacement. -
Hi @Hobs Theoretical value of analog-out is not available. The most accurate would using one scope channel to capture it with precise timing (, attenuation...) relative to the other signals. If you are using stable trigger (like analog-out triggered on analog-in), this can be saved in you script and used as 'reference' for X in the consecutive captures. You could also generate the theoretical value with a script function, like a 'math' channel.
-
Using Analog Discovery 2 to simulate HC-SR04
attila replied to lokobob99's question in Test and Measurement
Hi @lokobob99 I've not used ultrasonic sensor, just configured the Pattern and Wavegen to generate 8x40kHz at 1ms after trigger. -
Using Analog Discovery 2 to simulate HC-SR04
attila replied to lokobob99's question in Test and Measurement
Hi @lokobob99 You can use Patterns or Wavegen to trigger and generate (digital or analog) 'echo' signal at the specified delay/wait. -
Hi @Karlis I suspect it is an USB contact issue. According to the datasheet the VCCA and VCORE are driven by the same LDO so probably both are at 1.8V
-
Analog Discovery Pro ADP3450 not visible in Waveforms
attila replied to GlennCB's question in Test and Measurement
Hi @GlennCB Please verify in Windows Device Manager under "USB controllers" if "Digilent ADP3450" or "Unknown USB Device" is listed, or lsusb if you are using Linux. If it is not listed, contact for replacement the support.digilent at ni.com specifying the Date of Purchase, Seller and Purchase Order/ Web order Number. -
-
Hi @Masinu You can find the schematic for Arty revC (Arty A7 is revE) here: https://digilent.com/reference/programmable-logic/arty/start https://digilent.com/reference/_media/reference/programmable-logic/arty/arty_sch.pdf
-
Analog Discovery Pro Logger with script
attila replied to Albertu95's question in Test and Measurement
Hi @Hobs -
Hi @Hobs dwf.FDwfAnalogInTriggerSourceSet(hdwf, trigsrcDetectorAnalogIn) #one of the analog in channels See the WF SDK/ samples/ py/ AnalogIn_Trigger.py
-
Failure to connect MATLAB to AD2 on MacOS 12
attila replied to JonasD's question in Test and Measurement
Hi @JonasD Try modifying the .m to use /Library/Frameworks/dwf.framework/.. -
Analog Discovery Pro Logger with script
attila replied to Albertu95's question in Test and Measurement
Hi @Albertu95 Scope.Export("~/Documents/albertomeasure/output/ac.csv") -
Some math on scope channels behaves strangely
attila replied to Anthocyanina's question in Test and Measurement
Hi @Anthocyanina Yes. It depends on the noise. What you are seeing is the derivative +/- sample to sample noise it captures. In M1 I didn't multiply it with the rate so you can see a +/-~2mV noise. You probably want if(isNaN(prev)) prev = C1; and having the initializer code var prev = NaN; for the first sample to be zero. -
Logic and Scope viewed at same time
attila replied to Wayne Contello's question in Test and Measurement
-
Some math on scope channels behaves strangely
attila replied to Anthocyanina's question in Test and Measurement
Hi @Anthocyanina Use BNC or twisted wires (like 1+/1- and W1/GND) to reduce the noise. I don't know what is your derivative function but the following M1 for me looks like this: