I installed the latest Waveforms on my Ubuntu Linux 20.04 computer.
Inside /usr/include/digilent/waveforms/dwf.h I see ...
typedef int DWFERC;
const DWFERC dwfercInvalidParameter0 = 0x10; // Invalid parameter sent in API call
const DWFERC dwfercInvalidParameter1 = 0x11; // Invalid parameter sent in API call
const DWFERC dwfercInvalidParameter2 = 0x12; // Invalid parameter sent in API call
const DWFERC dwfercInvalidParameter3 = 0x13; // Invalid parameter sent in API call
const DWFERC dwfercInvalidParameter4 = 0x14; // Invalid parameter sent in API call
Error Codes int Error Code Definition
dwfercInvalidParameter0 5 Parameter 0 was invalid in last API call.
dwfercInvalidParameter1 6 Parameter 1 was invalid in last API call.
dwfercInvalidParameter2 7 Parameter 2 was invalid in last API call.
dwfercInvalidParameter3 8 Parameter 3 was invalid in last API call.
dwfercInvalidParameter0 = 0x10 is not the same as dwfercInvalidParameter0 = 5
Question
Charles K
Hi Digilent,
I installed the latest Waveforms on my Ubuntu Linux 20.04 computer.
Inside /usr/include/digilent/waveforms/dwf.h I see ...
typedef int DWFERC;
const DWFERC dwfercInvalidParameter0 = 0x10; // Invalid parameter sent in API call
const DWFERC dwfercInvalidParameter1 = 0x11; // Invalid parameter sent in API call
const DWFERC dwfercInvalidParameter2 = 0x12; // Invalid parameter sent in API call
const DWFERC dwfercInvalidParameter3 = 0x13; // Invalid parameter sent in API call
const DWFERC dwfercInvalidParameter4 = 0x14; // Invalid parameter sent in API call
But inside reference manual ...
https://reference.digilentinc.com/reference/software/waveforms/waveforms-sdk/reference-manual
Error Codes int Error Code Definition
dwfercInvalidParameter0 5 Parameter 0 was invalid in last API call.
dwfercInvalidParameter1 6 Parameter 1 was invalid in last API call.
dwfercInvalidParameter2 7 Parameter 2 was invalid in last API call.
dwfercInvalidParameter3 8 Parameter 3 was invalid in last API call.
dwfercInvalidParameter0 = 0x10 is not the same as dwfercInvalidParameter0 = 5
Is this a typo or am I missing something? Thanks
Link to comment
Share on other sites
2 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