I am having some trouble using the function FDwfAnalogInStatusData16() in C++. The host PC I'm using is a Raspberry Pi 4 with Debian Linux. I am using record acquisition mode. The function call works great for me in Python, I can see an expected sine wave input signal. But I get all zeroes in my buffer when doing the same thing in C++. The buffer is defined globally as a static array. For now I am working with just 1 channel, but the goal is 3 channels. My code is attached, can you help me determine what I am doing wrong?
Question
AbbyM
Hello!
I am having some trouble using the function FDwfAnalogInStatusData16() in C++. The host PC I'm using is a Raspberry Pi 4 with Debian Linux. I am using record acquisition mode. The function call works great for me in Python, I can see an expected sine wave input signal. But I get all zeroes in my buffer when doing the same thing in C++. The buffer is defined globally as a static array. For now I am working with just 1 channel, but the goal is 3 channels. My code is attached, can you help me determine what I am doing wrong?
Thank you,
Abbytest_adpro.cpp
test_adpro.py
Link to comment
Share on other sites
15 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