I am using the logic analyzer function of the ADP3450 to make measurements.
DIO0 pin = clock signal (5MHz)
DIO1 pin = 1 bit stream (5Mbps)
In this case, sampling clock source is not internal clock, but DIO0 pin as external clock signal.
I managed to capture data by using the Waveform GUI. Now I am trying to figure out how to do this with Waveform SDK.
The preferred programming language is python. But any other language is also acceptable.
I have checked the python script example bundled with the Waveform SDK.(example/py/DigitalIn_Acquisition.py)
I have two main questions. Question1: How do I set the DIO0 pin as Sampling Clock in Waveform SDK?
I assume it is possible to assign DIO0 to Clock Source using FDwfDigitalInSampleFormatSet(), but I don't know how to do that.
Question2: Can you give me any comments on the read data structure of FDwfDigitalInStatusData()?
What values can I see for the DIO1 pin data?
[DigitalIn_Acquisition.py]
Quote
# 16bit per sample format
dwf.FDwfDigitalInSampleFormatSet(hdwf, c_int(16))
...
...
# get samples, byte size
dwf.FDwfDigitalInStatusData(hdwf, rgwSamples, 2*cSamples)
Question
yusuke_Adv
I am using the logic analyzer function of the ADP3450 to make measurements.
DIO0 pin = clock signal (5MHz)
DIO1 pin = 1 bit stream (5Mbps)
In this case, sampling clock source is not internal clock, but DIO0 pin as external clock signal.
I managed to capture data by using the Waveform GUI. Now I am trying to figure out how to do this with Waveform SDK.
The preferred programming language is python. But any other language is also acceptable.
I have checked the python script example bundled with the Waveform SDK.(example/py/DigitalIn_Acquisition.py)
I have two main questions.
Edited by yusuke_AdvQuestion1: How do I set the DIO0 pin as Sampling Clock in Waveform SDK?
I assume it is possible to assign DIO0 to Clock Source using FDwfDigitalInSampleFormatSet(), but I don't know how to do that.
Question2: Can you give me any comments on the read data structure of FDwfDigitalInStatusData()?
What values can I see for the DIO1 pin data?
[DigitalIn_Acquisition.py]
typo
Link to comment
Share on other sites
12 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now