Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Demo Adaptor Description

The demo adaptor installed with Data Acquisition Toolbox™ consists of the files described in the following tables.

Source Files

The demo adaptor source files are in matlabroot\toolbox\daq\daqsdk\src\daqadaptor\DemoAdaptor.

FileDescription
demoadaptor.hpp, demoadaptor.cppWraps device driver code in methods that allow you to configure, discover, and enumerate the hardware in MATLAB.
daqstream_analog.hpp, daqstream_analog.cppImplements a DAQStream object for an analog subsystem, that allows you to stream data to and from the hardware.
custom_demo.cppDispatches calls from MATLAB to custom functions in the demo adaptor. At a minimum this must contain a customizeMap function.

In addition to these files, the demo adaptor also uses some of the source files in matlabroot\toolbox\daq\daqsdk\src\daqadaptor\Shared:

FilesPurpose
adaptorfactory.cpp, adaptorfactory.hppCreate adaptor for dispatch and streaming.
daqadaptor.cpp, daqadaptor.hppImplement adaptor class.
daqapi.hC interface.
daqdatatypes.hppC++ equivalents of session data types.
daqinterfaces.hppIAdaptor/IDriver, called before streaming.
daqstream.cpp, daqstream.hppTransfer streaming data between MATLAB and device driver
dispatcher.cpp, dispatcher.hpp, dispatcher_common.hppMATLAB calls to convert data and call adaptor functions.
fakevendordriver.hppFake or virtual driver for testing and demonstrations.
globals.hGlobal settings.
mxconvert.hppUtility functions for data type conversions.

Class Definitions in MATLAB

The demo adaptor class definitions are in matlabroot\toolbox\daq\daqsdk\+daq\+demoadaptor.

FileDescription
Session.mDefines daq.demoadaptor.Session class.
VendorInfo.mDefines vendor driver class for daq.getVendor.

In addition to the files in this table, the demo adaptor also uses some of the class definition files in matlabroot\toolbox\daq\daqsdk\+daq\+sdk.

Executables

The following demo adaptor executables are in matlabroot\toolbox\daq\daqsdk\bin\win64.

FileDescription
DemoAdaptor.mexw64Built demo adaptor.
daqasyncio.dllAccommodates streaming channel communication.
daqmlconverter.dllHandles data type conversion.

See Also

Functions

Related Topics

Was this topic helpful?