mms14
Members-
Posts
10 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
mms14's Achievements
Member (2/4)
1
Reputation
-
Running time is less than scheduled recording time
mms14 replied to mms14's question in Test and Measurement
Hi @attila Thank you for your answer but I don't understand. I would to record 60s with sampling frequency of 100kHz like in the image -
mms14 started following Hi! Questions about Analog Discovery 3 , Running time is less than scheduled recording time , Read continuous Digital/Analog signal and 2 others
-
Hello, I set my AD3 digitalIn to record 60s and the recording lasts about 55s. Frequency is set to 100kHz, gives a divider of 1000 which is a multiple of 8 : The number of samples is 6.000.000 The divider and number of samples are configured : # get internal clock frequency internal_frequency = c_double() dwf.FDwfDigitalInInternalClockInfo(device_handle, byref(internal_frequency)) # set clock frequency divider (needed for lower frequency input signals) dwf.FDwfDigitalInDividerSet(device_handle, c_int(int(internal_frequency.value / self.sampling_frequency))) # set 8-bit sample format dwf.FDwfDigitalInSampleFormatSet(device_handle, c_int(16)) # set buffer size dwf.FDwfDigitalInBufferSizeSet(device_handle, c_int(self.buffer_size)) Other configuration : dwf.FDwfDigitalInTriggerPositionSet(device_handle, c_int(int(self.buffer_size/2))) # trigger in the middle # number of samples before trigger dwf.FDwfDigitalInTriggerPrefillSet(device_handle, c_int(0)) dwf.FDwfDigitalInInputOrderSet(device_handle, c_int(0)) dwf.FDwfDigitalInConfigure(device_handle, c_bool(True), c_bool(False)) I did few runs with the same sampling frequency and number of samples and print the time : print(time.time()) result, recordTime = logic.record(device.hdwf) print(time.time()) the record function is the same as in examples and I get different execution time : 55.1014998 54.0307646 55.8770659 54.8211658 57.0943558 55.5126603 And with frequency of 10kHz and 600.000 samples, it lasts about 32s How to configure to record for 60s ? Thanks
-
Hello, This could help you, I was facing the same problem It was for UART signal, but its much easier using USB-UART module.
- 2 replies
-
- digilent sdk
- analog
- (and 4 more)
-
Hello, I'm working in Raspberry Pi with AD3, I would like to configure my device in SDK like this configuration from Waveforms : I managed to configure the sampling frequency, I'm stuck when trying to configure the sample number (the 10M top right). When I configure the 10M samples, the allocated RAM to the script increases until the Pi dies while in Waveforms, it stays constant (15%). I set the sampling frequency using this : dwf.FDwfDigitalInInternalClockInfo(device_handle, byref(internal_frequency)) dwf.FDwfDigitalInDividerSet(device_handle, c_int(int(internal_frequency.value / self.sampling_frequency))) I set the sample number with : dwf.FDwfDigitalInBufferSizeSet(device_handle, c_int(self.buffer_size)) I attached my script if you need more context (SDK_sample_configuration.py) Thank you, SDK_sample_configuration.py
- 1 reply
-
- sdk
- logic analyzer
-
(and 1 more)
Tagged with:
-
mms14 reacted to an answer to a question: How to log multiple UART from Logic Analyzer
-
How to log multiple UART from Logic Analyzer
mms14 replied to mms14's question in Test and Measurement
Hello @attila, Good to know, I'm working on Raspberry Pi, 64 bit OS Edit : Did I install the 32 bit version ? Or is it link to digilent Adept ? Should I try to install a Waveforms linux 64 bit version ? Thank you- 9 replies
-
- analog discover 3
- digitalin
-
(and 1 more)
Tagged with:
-
How to log multiple UART from Logic Analyzer
mms14 replied to mms14's question in Test and Measurement
Hi @attila, Thank you, I didn't changed the AD3 configuration in Settings / Device Manager, now the 4th or 5th configuration allows me to get 10M samples maximum, so now I can record up to 40s (at 250kHz), which is do-able to log the entire day with a small logging script. I don't know how you get 240M samples ?- 9 replies
-
- analog discover 3
- digitalin
-
(and 1 more)
Tagged with:
-
How to log multiple UART from Logic Analyzer
mms14 replied to mms14's question in Test and Measurement
Thank you @attila, Sorry if i was not specific enough, at the end I would record multiple UART for days and get one file per UART per day, example : and file content : [00:00:13.897] -- This is UART log [00:00:13.912] -- There is a new line on each '\n' [00:00:13.928] -- This is another data Looks like tricky to do it if we consider record each 32,768 samples per channel and do it again all the day, I would need a stream mode and save it every 10 minutes for example. (baudrate is 115200)- 9 replies
-
- analog discover 3
- digitalin
-
(and 1 more)
Tagged with:
-
Charlotte123 reacted to an answer to a question: Hi! Questions about Analog Discovery 3
-
How to log multiple UART from Logic Analyzer
mms14 replied to mms14's question in Test and Measurement
Hello @JColvin, Thanks for your answer, so you recommend to use the SDK. To log multiple UART at the same time, should I use the Logic Analyzer instrument or the Protocol:UART instrument ? because it looks like in the Software and SDK, we can have only one UART using the Protocol instrument. If I use the Logic Analyzer instrument, how to decode the buffer in ascii ? If I use the Protocol:UART instrument, how to get multiple UART record ? Thanks.- 9 replies
-
- analog discover 3
- digitalin
-
(and 1 more)
Tagged with:
-
Hello, I would to log (store in files with the timestamp in front of each line) up to 16 UART-Rx signal, I guess I should use the Logic instrument and create n UART. I started playing with some FDwfDigitalIn functions and I was wondering what was the quickest solution to do this, but I don't know the possibilities : do it directly in the Waveforms SW, open Logic Analyzer with Record mode OR using a script with SDK ? Thanks,
- 9 replies
-
- analog discover 3
- digitalin
-
(and 1 more)
Tagged with:
-
Hi! Questions about Analog Discovery 3
mms14 replied to Charlotte123's question in Test and Measurement
Hello @Charlotte123, I started using the Analog Discovery 3 with SDK yesterday, I could open the device with Logic and Protocol instrument instance and read some UART, so yes it's compatible I guess.