Search the Community
Showing results for tags 'python script'.
-
python script 2.7 Voltage cap on mesurements
Amund posted a question in Scopes & Instruments and the WaveForms software
I am using the python API for Waveforms to interface an Analog Discovery 2 and are trying monitor a voltage. The problem is that the measurements on channel 1 are capped to about 2.7 Volt wile channel 2 can measure up to 12.5 (the voltage I am supposed to measure) just fine. When I open Waveforms and use the scope there everything seems to work just fine. I am using the example code from AnalogIn_Record.py whit some small cleanup/modifications. Does anyone have an idea what I might be doing wrong? """ DWF Python Example Author: Digilent, Inc. Revision: 2018-07-19 R- 3 replies
-
- api
- analogdiscovery2
-
(and 1 more)
Tagged with:
-
Hi, With Waveforms, I can output the DC voltage of the digital signals, i.e. 3.3V on DigitalDiscovery. But with a python script, I use : # set voltage to 3.3 V (DD) dwf.FDwfAnalogIOChannelNodeSet(hdwf, 0, 0, c_double(3.3)) # enable positive supply dwf.FDwfAnalogIOEnableSet(hdwf, 1) # enable VIO But, I cannot the get the 3.3V voltage reference. What is missing ? Thanks, BRgds, Laurent
-
Hi, How to change the digital voltage and drive of the output pins dIO31-24 with a python script driving a digital discovery ? How to read the current of the vIO with a python script ? And how to turn it on ? Thank you, Laurent
- 3 replies
-
- digital discovery
- python script
-
(and 1 more)
Tagged with:
-
Hello, I'm using the AD2 and would like to use Python to play an imported signal of arbitrary length (like in the function AnalogOut_Play) while at the same time acquiring data (like in the function AnalogIn_Record). Is there a straightforward way of combining these two functions?
- 1 reply
-
- analogdicovery2
- analog discovery2
-
(and 3 more)
Tagged with:
-
Hi, I am capturing traces and storing the data using the analog discovery 2. The FDwfAnalogInStatusData() stores the data as double. I want to store the data as binary or integer retaining the precision. Is there a workaround? The source code for the function isn't available so I cannot change that. Following is the snippet of the code ################################################## while True: dwf.FDwfAnalogInStatus(hdwf, c_int(1), byref(sts)) if sts.value == DwfStateDone.value : dwf.FDwfAnalogInStatusData(hdwf, 1, sample_list, 8
- 2 replies
-
- waveformssdk
- analog discovery 2
- (and 3 more)