How does the DAQ demo adaptor work?
2 views (last 30 days)
Show older comments
The DAQ toolbox includes a "demo adaptor". I believe this is a dummy DAQ card implemented in software, or perhaps it uses some actual hardware, but I can't find good documentation on this.
I did some tests and there seems to be a small sinusoidal signal on e.g. MWDev0 ai0, but beyond that I'm not sure what any of the three demo devices (MWDev0, MWDev1, MWDev2) can do, or how they can be used.
Can I route an ao channel from one of these devices to an ai channel, i.e. loopback? This would be helpful for testing my code.
Could someone describe what MWDev0/1/2 are / how they work?
Here's what I found in the docs: https://de.mathworks.com/help/daq/sdk/demo-adaptor-description_bvlde_f-2.html
Thank you.
0 Comments
Answers (1)
Vinod
on 18 Apr 2017
The demo adaptor contains all the source code to add support for any device you wish in Data Acquisition Toolbox. The source code for the demo adaptor is provided for this purpose. You can modify the C++ source code to do things like emulate certain devices or signals. Feel free to open up the source for daqadaptor.cpp & daqadaptor.hpp.
See Also
Categories
Find more on Data Acquisition Toolbox Supported Hardware in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!