I have an Analog Discovery 3 that I am trying to use with some software I wrote using the Analog Discovery 2, and have downloaded the latest SDK. The program is running analog input CH1 and CH2 continuously triggering on an arbitrary waveform from W1. Everything works fine with the AD2, but when switching to the AD3, data is only read once and then AnalogInStatus always returns 1 (it should return 2 when data is ready).
nRet = FDwfAnalogInStatus(hdwf, 1, sts) 'with AD3, returns 3 first, then 2 and data can be read, then always stuck in 1 state
The only way I have been able to get the AD3 to continuously read is to reset the AnalogOutputConfigure on every iteration in order to get it to work, as shown below, but this creates a very loud "click" on each iteration and is definitely not the correct approach:
nRet = FDwfAnalogOutConfigure(hdwf, -1, 3) 'restart analog output on CH1
which is very strange as I have set the AnalogOutput trigger to none so I expect it to be running continuously and allowing CH1 to trigger on it.
Is there any reason the behavior would be different with the AD3 than the AD2 with respect to the AnalogOutput running continuously?
Question
Walid
I have an Analog Discovery 3 that I am trying to use with some software I wrote using the Analog Discovery 2, and have downloaded the latest SDK. The program is running analog input CH1 and CH2 continuously triggering on an arbitrary waveform from W1. Everything works fine with the AD2, but when switching to the AD3, data is only read once and then AnalogInStatus always returns 1 (it should return 2 when data is ready).
nRet = FDwfAnalogInStatus(hdwf, 1, sts) 'with AD3, returns 3 first, then 2 and data can be read, then always stuck in 1 state
The only way I have been able to get the AD3 to continuously read is to reset the AnalogOutputConfigure on every iteration in order to get it to work, as shown below, but this creates a very loud "click" on each iteration and is definitely not the correct approach:
nRet = FDwfAnalogOutConfigure(hdwf, -1, 3) 'restart analog output on CH1
which is very strange as I have set the AnalogOutput trigger to none so I expect it to be running continuously and allowing CH1 to trigger on it.
Is there any reason the behavior would be different with the AD3 than the AD2 with respect to the AnalogOutput running continuously?
I can add detailed example code if needed.
Thanks,
Walid
Link to comment
Share on other sites
8 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