Accessing a Analog Discovery without the Marlab supportpackage.
Show older comments
Hello.
I have the past year if not for longer been trying and trying to get this to work but I am not succeeding, I don't want to seem to be moaning or anything like that but I want to tell you that I have severe ADD(and Aspberger syndrome) and that is in most instances a huge hurdle to overcome while trying to develop my understanding for Matlab or any other software(ADD that is), and I may, only may have found the solution to what I am trying to do without noticing or grasping it.
I have bought a Analog Discovery without being able to use it for what I bought it to use it for and I am really frustrated with this and I was hoping that someone here may know how to do and wouldn't mind telling me. I really have been doing all I can to solve this my self before I came back here.
You see the Analog Discovery is a USB device that enables things like Oscilloscope, waveform generator, network analyser digital pattern something something etc.
I don't know if I am allowed to post the files that you get when you install the Waveforms software(which since the 2015 version is very complicated to download, it is dead simple but before you could press "download" and be done with it but now you have to go through a purchase process as if you where buying a product only that it costs $0)
But when you have installed 'WaveForms 2015' or any other version you are also getting a folder named 'WaveFormsSDK' within which you find examples in C/Python and some other language, and you also get the following:
- dwf.h file containing what is expected to be found in a header file(declarations for all the functions and so on).
- dwf.lib file
- dwf.dll file(which I don't think I will need to be messing with, oh and this isn't inside the 'WaveFormsSDK' folder but wound in my case in windows\system32 or some such system directory)
I have read a comment on a blog or something that some person used to use those files to access a Analog Discovery through Matlab and through my research I have figured out that I need to use to functions relating to external libraries such as loadlibrary()(I have to be a genius! right...). But I fail to understand how to call all the functions seen in the example files for C, there are a "WaveForms SDK Reference Manual.pdf" file but that isn't any help at all in regards to getting access to the device(not in the context of this thread). I have tried to do this through Visual Studio but failed and my last resort is to learn Python but that is something I don't have time for right now.
This shouldn't be that hard I think but I don't understand how it is done. This isn't any special case is it? it should be identical to any other situation in which you have a .h and .lib file and want to see those C files in Matlab
Could someone show me how to use a .h and .lib file and access those functions in Matlab?
I can't tell you how much I would appreciate it.
Edit: Quote: "We used to use matlab with direct dwf library calls using matlab's calllib() function"
Regards
Accepted Answer
More Answers (0)
Categories
Find more on Periodic Waveform Generation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!