Data acquisition toolbox

Data acquisition toolbox DEFAULT

NIMH DAQ Toolbox

I. Introduction

NIMH DAQ Toolbox (NIMH DAQ) is a pacakge of MATLAB scripts and mex binaries that enable MATLAB to acquire digital samples or generate analog/TTL output through data acquisition hardware.  There is MATLAB's own Data Acquisition Toolbox (MATLAB DAQ) for this purpose already, but MATLAB DAQ does not support its legacy interface on 64-bit MATLAB nor in the releases later than R2015b.  NIMH DAQ is developed to extend the legacy interface to 64-bit MATLAB and continue to support it in the latest version of MATLAB so that users can keep running mission-critical codes written with the legacy DAQ interface.

NIMH DAQ includes some improvements in DAQ functions to support near-realtime behavior monitoring and stimulation that are required in neuroscience research.  For example, it does not require two DAQ boards to compensate long sample update intervals in MATLAB DAQ.  For the details of the improvements, see this PDF document and Hwang et al. (2019).

II. Supported devices

  • National Instruments multifunction I/O device
  • Sound card
  • Parallel port
  • Touchscreen (MonkeyLogic Graphics Library required)
  • USB joystick
  • TCP/IP eye tracker (EyeLink, ViewPoint and ISCAN)
  • Keyboard
  • Mouse
  • Webcam
  • Serial port

For those devices that do not have a sample clock (NI digital input, parallel port, touchscreen, USB joystick, TCP/IP eye tracker, keyboard, mouse), NIMH DAQ performs millisecond-resolution data acquisition based on a software timer.

III. Installation

NIMH DAQ is included in NIMH ML and not distributed as a separate package. Copy the daqtoolbox directory from the NIMH ML package and add it to the MATLAB path.  Install additional libraries as explained in this manual page.

IV. Usage

NIMH DAQ is made compatible with the legacy interface of MATLAB DAQ Toolbox, although not all the functions are implemented.  Basic commands are shown below. There are more example scripts in the daqtoolbox\examples directory.

    Hardware Discovery

      1. Find all installed adapters

      >> devices = daqhwinfo
      >> devices.InstalledAdaptors

      ans =

      2. Information about an installed adapter

      >> ni = daqhwinfo()

      ans =

      3. Information about a particular device

      >> ai = analoginput(,)
      >> daqhwinfo()

      ans =

    Analog Input

      1. Create an analog input object

      >> ai = analoginput(,);
      >> addchannel(ai,0:1);

      2. Acquire a single sample

      >> getsample(ai)

      3. Acquire continuous samples

      >> ai.SampleRate = 1000;
      >> ai.SamplesPerTrigger = 1000;  
      >> start(ai);                    
      >> data = peekdata(ai);          
      >> data = getdata(ai);           

      4. Triggered sampling

      >> ai.TriggerType = ;
      >> start(ai);                    
      >> trigger(ai);                  

    Analog Output

      1. Create an analog output object

      >> ao = analogoutput(,);
      >> addchannel(ao,0);

      2. Send out a single sample

      >> putsample(ao,5)

      3. Generate a waveform

      >> ao.SampleRate = 1000;
      >> putdata(ao,sind(linspace(0,360,1000))');  
      >> start(ao);                                

      4. Triggered generation

      >> ao.TriggerType = ;
      >> putdata(ao,sind(linspace(0,360,1000))');
      >> start(ao);                    
      >> trigger(ao);                  

    Digital Input/Output

      1. Create a digital I/O object

      >> di = digitalio(,);
      >> addline(di,0:3,0,);        

      >> do = digitalio(,);
      >> addline(do,4:7,0,);       

      2. Read a value

      >> getvalue(di)

      2. Write a value

      >> putvalue(do,12)
      >> putvalue(do,[0 0 1 1])         

Sours: https://monkeylogic.nimh.nih.gov/docs_NIMHDAQToolbox.html

Data Acquisition Toolbox

Connect to data acquisition cards, devices, and modules

Data Acquisition Toolbox™ provides apps and functions for configuring data acquisition hardware, reading data into MATLAB® and Simulink®, and writing data to DAQ analog and digital output channels. The toolbox supports a variety of DAQ hardware, including USB, PCI, PCI Express®, PXI®, and PXI-Express devices, from National Instruments® and other vendors.

The toolbox apps let you interactively set up a data acquisition interface and configure it to your hardware. You can then generate equivalent MATLAB code to automate your data acquisition. Toolbox functions give you the flexibility to control the analog input, analog output, counter/timer, and digital I/O subsystems of a DAQ device. You can access device-specific features and synchronize data acquired from multiple devices.

You can analyze data as you acquire it or save it for post-processing. You can also automate tests and make iterative updates to your test setup based on analysis results.

Get Started

Learn the basics of Data Acquisition Toolbox

Hardware Discovery and Setup

Set up a DataAcquisition interface, find and connect to specified devices, configure data

Analog Input and Output

Acquire and generate analog signals with devices from supported vendors

Digital Input and Output

Acquire and generate digital data with data acquisition hardware

Counter and Timer Input and Output

Acquire counter data and generate pulses with National Instruments devices

Multichannel Audio Input and Output

Acquire multichannel audio data and generate signals with Windows® sound cards

Periodic Waveform Generation

Generate periodic function waveforms with Digilent® devices

Simultaneous and Synchronized Operations

Acquire and generate analog data simultaneously, synchronize acquisition and generation

Simulink Data Acquisition

Build models to acquire and generate analog and digital data

Data Acquisition Toolbox Supported Hardware

Support for third-party hardware

Troubleshooting in Data Acquisition Toolbox

Resolve unexpected issues in Data Acquisition Toolbox

Sours: https://www.mathworks.com/help/daq/
  1. Hp 98 printer ink
  2. Kiteboarding texas city
  3. Bulletproof diesel kit
  4. Lil rodney mother name

Getting Started with the Data Acquisition Toolbox

Data Acquisition Toolbox   

Toolbox Components

The Data Acquisition Toolbox consists of three distinct components: M-file functions, the data acquisition engine, and hardware driver adaptors. As shown below, these components allow you to pass information between MATLAB and your data acquisition hardware.

The preceding diagram illustrates how information flows from component to component. Information consists of:

    You can control the behavior of your data acquisition application by configuring property values. In general, you can think of a property as a characteristic of the toolbox or of the hardware driver that can be manipulated to suit your needs.

    You can acquire data from a sensor connected to an analog input subsystem and store it in MATLAB, or output data from MATLAB to an actuator connected to an analog output subsystem. Additionally you can transfer values (1's and 0's) between MATLAB and a digital I/O subsystem.

    An event occurs at a particular time after a condition is met and may result in one or more actions that you specify. Events can be generated only after you configure the associated properties. Some of the ways you can use events include initiating analysis after a predetermined amount of data is acquired, or displaying a message to the MATLAB workspace after an error occurs.


 Selected Bibliography M-File Functions

Sours: http://matrix.etseq.urv.es/manuals/matlab/toolbox/daq/c2_getst.html
TutorialMatlab - Data Acquisition Toolbox

Data Acquisition Toolbox™ provides apps and functions for configuring data acquisition hardware, reading data into MATLAB® and Simulink®, and writing data to DAQ analog and digital output channels. The toolbox supports a variety of DAQ hardware, including USB, PCI, PCI Express®, PXI®, and PXI Express® devices, from National Instruments® and other vendors.

The toolbox apps let you interactively configure and run a data acquisition session. You can then generate equivalent MATLAB code to automate your acquisition in future sessions. Toolbox functions give you the flexibility to control the analog input, analog output, counter/timer, and digital I/O subsystems of a DAQ device. You can access device-specific features and synchronize data acquired from multiple devices.

You can analyze data as you acquire it or save it for post-processing. You can also automate tests and make iterative updates to your test setup based on analysis results.

Apps for Data Acquisition

Interactively configure and run your data acquisition interface without writing code, then generate the equivalent MATLAB code to automate your acquisition in the future.

Data Acquisition Hardware Vendors

Use data acquisition hardware from National Instruments and other vendors. Access subsystems common to different devices as well as device-specific features.

Sensors

Make a variety of measurements directly from MATLAB without the need to convert the data. Collect and process data directly from thermocouples, RTD devices, IEPE accelerometers and microphones, current-based sensors, and bridge-based sensors.

Select a Web Site

Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

Select web site

You can also select a web site from the following list:

How to Get Best Site Performance

Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.

Contact your local office

Sours: https://www.mathworks.com/products/data-acquisition.html

Acquisition toolbox data

I do not know. I want to die. you know what. - There are sharp stones. It will hurt.

Acquiring Data from Sensors and Instruments Using MATLAB

And as I was in my white panties, I jumped after them. And then the full moon came out. The spectacle I'll tell you.

You will also like:

Again she is sleeping without hind legs. My beauty is sleeping. Naked, thin, beautiful.



1355 1356 1357 1358 1359