Search the Community
Showing results for tags 'data acquisition'.
Found 3 results
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?
Hello there!! I'm trying to do capacitance measurements over the time with a Analog Discovery 2 NI edition and save then, as the code on the image below. But now, I need to implement 2 things in this script, wich I would like to know if it is possible to. 1) Save the measurements acquired automatically in a file on the computer (like a .txt or anything like that) 2) Make the script change the frequency of the Impedance meter as it run ( for example, acquisition 0 to 4 runs in 10kHz and 5 to 9 runs in 5kHz) If it is possible, how could I implement that on my script ? Thanks everyone for the attencion!
Hello All, We currently have the Discovery 2 in lab and use Waveforms to collect data. Is there anyway I can build a UI( think a simple form, name , value pairs ) into waveform to capture meta data while collection a sequence of scans ? I would like to embed the data into the scan file header or maybe in a txt file that I can write into the directory where the data is being written. Thanks so much for your help ! PS: I see that Matlab Supports the first version of the card, but nothing announced for version 2 https://www.mathworks.com/hardware-support/digilent-analog-discovery.html