Hello @attilathank you for your reply. I have tried this on Matlab as a function DWFtest, and called the function on my main file as DWFtest(). However, I ran into a few warnings which state that "The function FDwfParamSet is not found in the library". I go several warnings for all of the calllib parameters you mentioned on your file. Now, I know that my dwf.h file is in the following directory in my PC: hfile = 'D:/Digilent/WaveFormsSDK/inc/dwf.h' so I edited your file, but everything else remains the same.
So could you please tell me how I can fix this?
Also, when I run the main file for 5+ times, I run into the following error:
Error detected using 'digilent' hardware:
Digilent devices with the following serial numbers are reserved by another program:
SN:210321A35F30. To unreserve these devices, close the application and call daqreset.
I have attached the main file, in case you would like to look at it.
I closed all the applications, even unplugged the USB to the AD2, and tried daqreset, but to no avail. I had to restart my PC to get rid of this problem. Do you know how to fix this too?
Thank you once again! :)
Waveform_Generation.m