I've been looking in some detail at the different configurations reported by the FDwfEnum... functions. Looking at the device enumerations of the two devices I have sitting on my desk, I spotted what I think is a small issue.
First, some data as dumped by a script I wrote. These are the configuration numbers reported by my Analog Discovery 2, which reports 8 configurations:
The small issue I want to report is that the AnalogIO channel count seems to be incorrect for both devices. Using the FDwfAnalogIOChannelCount function, the AD2 reports 5 channels instead of the 2 as reported above; and the DD reports 3 channels instead of the 2 as reported above. I think the numbers reported by FDwfEnumConfigInfo() with info=AnalogIOChannelCount appear to be wrong, since those channels do in fact appear to exist when queried.
Then, two questions. First, about the AD2, configuration number 5; it reports AnalogOutChannelCount=4 there. Is that a mistake, or does the device in fact support 4 analog output channels in that mode? If the latter, are those outputs available for use?
Then, also for the AD2: based on the reported configurations, it seems as if config #0 is identical to config #4, and #3 is identical to #6. To double-check, I opened with the Waveforms GUI, and I realized that it presents an Other column, where those configurations are different (config #0 and #3 are empty; config #4 and #6 show "1V8 Digital Input"). This suggests that there is some API that the GUI uses that isn't documented, perhaps a DwfEnumConfigInfo value outside of the 10 publicly documented values. Is that the case?
Question
Guest
Hi,
I've been looking in some detail at the different configurations reported by the FDwfEnum... functions. Looking at the device enumerations of the two devices I have sitting on my desk, I spotted what I think is a small issue.
First, some data as dumped by a script I wrote. These are the configuration numbers reported by my Analog Discovery 2, which reports 8 configurations:
And these are the configuration numbers from my Digital Discovery, which reports 1 configuration:
The small issue I want to report is that the AnalogIO channel count seems to be incorrect for both devices. Using the FDwfAnalogIOChannelCount function, the AD2 reports 5 channels instead of the 2 as reported above; and the DD reports 3 channels instead of the 2 as reported above. I think the numbers reported by FDwfEnumConfigInfo() with info=AnalogIOChannelCount appear to be wrong, since those channels do in fact appear to exist when queried.
Then, two questions. First, about the AD2, configuration number 5; it reports AnalogOutChannelCount=4 there. Is that a mistake, or does the device in fact support 4 analog output channels in that mode? If the latter, are those outputs available for use?
Then, also for the AD2: based on the reported configurations, it seems as if config #0 is identical to config #4, and #3 is identical to #6. To double-check, I opened with the Waveforms GUI, and I realized that it presents an Other column, where those configurations are different (config #0 and #3 are empty; config #4 and #6 show "1V8 Digital Input"). This suggests that there is some API that the GUI uses that isn't documented, perhaps a DwfEnumConfigInfo value outside of the 10 publicly documented values. Is that the case?
Best, Sidney
Link to comment
Share on other sites
3 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