How does the DAQ demo adaptor work?

조회 수: 2 (최근 30일)
Ben Suter
Ben Suter 2017년 4월 13일
댓글: Ben Suter 2017년 4월 18일
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?
Thank you.

답변 (1개)

Vinod
Vinod 2017년 4월 18일
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.
  댓글 수: 1
Ben Suter
Ben Suter 2017년 4월 18일
Thank you for this info. I will try to understand the source code.
However, I am - currently - not trying to add support for a new device. Rather, I do not (yet) have a physical DAQ device available - it is in the mail - and was hoping to do some testing with a dummy/simulated interface.
I am able to create a session with the Demo adapter, but I don't know what type of data is generated, whether I can generate output myself, whether this will affect inputs, etc.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Data Acquisition Toolbox Supported Hardware에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by