MATLAB Answers

simulink NI USB-6009 device

35 views (last 30 days)
Erik
Erik on 1 Feb 2016
Commented: Vinod on 27 Oct 2016
I'm using matlab2015b(64bit) on windows7 and trying to get some reading from my NatianalInstruments USB-6009 using simulink. Using Labview I get data, so I know the device is working. In simulink I'm unable to find a Realtime block for this device. There are plenty PCI based NI solutions there, but no USB based. Could someone please point me in the right direction, I have been searching the last 4 hours on this site.

  1 Comment

Walter Roberson
Walter Roberson on 1 Feb 2016
For future reference: the device is supported by the session based daq interface from MATLAB. I am not at my laptop at the moment to search out the Simulink access.

Sign in to comment.

Answers (2)

Walter Roberson
Walter Roberson on 1 Feb 2016
According to http://www.mathworks.com/hardware-support/nidaqmx.html the Simulink blocks for NI are supported only in Legacy interface. The USB 6009 does support both Session Based and Legacy interface, so there is the possibility of using the USB 6009 with Simulink blocks. However, the Legacy interface is available only in the 32 bit versions of MATLAB, so you will need to install the 32 bit version on your system to access it.
Note: R2015b is the last version that will support 32 bit MATLAB. I have no information about what this means for legacy interface or simulink block support.

  1 Comment

Vinod
Vinod on 23 Oct 2016
Data Acquisition Toolbox has Simulink blocks to support NI DAQ devices on 64-bit MATLAB & Simulink as of R2016b and newer.

Sign in to comment.


surya S
surya S on 14 Oct 2016
how to get ni6009 block in matlab? i dont find it in matlab? please anyone help

  1 Comment

Vinod
Vinod on 27 Oct 2016
I assume you mean you are looking for a Simulink block to access your NI USB 6009 device. NI DAQ devices are supported in MATLAB & Simulink R2016b and newer. Upgrade to the latest version and you will find the blocks you are looking for.

Sign in to comment.

Sign in to answer this question.


Translated by