I'm currently using the AD2 to calculate impedance using MATLAB. From the beginning it forced me to use the device id as "AD1." I figured, whatever, it's working. However it was limiting to only working at a max rate of 300k while simultaneously reading through the ch1 and 2 scope and generating a waveform.
I eventually realized that my device ID should be something like AD2_1. Which seemed to be an indication that MATLAB would treat it as an actual AD2 with all of it's increased capabilities. This is necessary as I would like to generate and read as high of a frequency through an inductor or capacitor as possible so I can plot impedance vs frequency.
The problem seems to come from having the Data Acquisition toolbox from Digilent installed on MATLAB. MATLAB treats the AD2 as an AD2 for a time, but it keeps eventually getting stuck treating it as an AD1. Which seems to switch what code will and won't work with my device.
When I delete the Digilent Data Acquisition toolbox, it usually treats it as an AD2 again. Is there some way I can prevent this?
I am currently running the latest version of MATLAB R2023a, have waveforms installed, and have the "Digilent Toolbox" downloaded as well. Another abnormality is the fact that my computers device manager does not recognize the AD2. But MATLAB and waveforms both recognize that I have it plugged into a USB port.
Question
K. Erickson
Hello Digilent world,
I'm currently using the AD2 to calculate impedance using MATLAB. From the beginning it forced me to use the device id as "AD1." I figured, whatever, it's working. However it was limiting to only working at a max rate of 300k while simultaneously reading through the ch1 and 2 scope and generating a waveform.
I eventually realized that my device ID should be something like AD2_1. Which seemed to be an indication that MATLAB would treat it as an actual AD2 with all of it's increased capabilities. This is necessary as I would like to generate and read as high of a frequency through an inductor or capacitor as possible so I can plot impedance vs frequency.
The problem seems to come from having the Data Acquisition toolbox from Digilent installed on MATLAB. MATLAB treats the AD2 as an AD2 for a time, but it keeps eventually getting stuck treating it as an AD1. Which seems to switch what code will and won't work with my device.
When I delete the Digilent Data Acquisition toolbox, it usually treats it as an AD2 again. Is there some way I can prevent this?
I am currently running the latest version of MATLAB R2023a, have waveforms installed, and have the "Digilent Toolbox" downloaded as well. Another abnormality is the fact that my computers device manager does not recognize the AD2. But MATLAB and waveforms both recognize that I have it plugged into a USB port.
Thank you in advance for any assistance.
Link to comment
Share on other sites
4 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