I’m trying to generate the custom data by using pattern generator in Analog Discovery 2. Although I set the digital output mode as custom, the output data is depend on the setting of the FDwfDigitalOutCounterInitSet. For example, I try this code and the custom data is not come from the pattern generator.
rg(0) = &HAFAFAFAF
FDwfDigitalOutTypeSet(hdwf, 7, 1)
FDwfDigitalOutDataSet(hdwf, 7, rg(0), 32)
Then I add the FDwfDigitalOutCounterInitSet and the output data is successfully generated.
rg(0) = &HAFAFAFAF
FDwfDigitalOutTypeSet(hdwf, 7, 1)
FDwfDigitalOutCounterInitSet(hdwf, 7, 1, 10)
FDwfDigitalOutDataSet(hdwf, 7, rg(0), 32)
What does the FDwfDigitalOutCounterInitSet mean when the output mode is custom?
Question
Kawai
Hello.
I’m trying to generate the custom data by using pattern generator in Analog Discovery 2. Although I set the digital output mode as custom, the output data is depend on the setting of the FDwfDigitalOutCounterInitSet. For example, I try this code and the custom data is not come from the pattern generator.
rg(0) = &HAFAFAFAF
FDwfDigitalOutTypeSet(hdwf, 7, 1)
FDwfDigitalOutDataSet(hdwf, 7, rg(0), 32)
Then I add the FDwfDigitalOutCounterInitSet and the output data is successfully generated.
rg(0) = &HAFAFAFAF
FDwfDigitalOutTypeSet(hdwf, 7, 1)
FDwfDigitalOutCounterInitSet(hdwf, 7, 1, 10)
FDwfDigitalOutDataSet(hdwf, 7, rg(0), 32)
What does the FDwfDigitalOutCounterInitSet mean when the output mode is custom?
Link to comment
Share on other sites
10 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.