Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling a DIO card usig io32 (from matlab)

I wish to control the DI/O ni-6224 card using io32 (http://people.usd.edu/~schieber/psyc770/IO32.html) from matlab.

For this - I need the physical address of the ports.

Where can these be found?

 

Thanks in advance,

Eitan Schechtman

 

0 Kudos
Message 1 of 4
(5,056 Views)

Hello Eitan,

 

I understand you want to use io32.dll which extends the Cogent 2000 MATLAB Toolbox. I am unsure whether Cogent 2000 would even be able to control PCI hardware, as the webpage describes its functionality as:

 

"Cogent 2000 incorporates Cogent Graphics and provides additional utilities for the manipulation of sound, keyboard, mouse, joystick, serial port, parallel port, subject responses and physiological monitoring hardware."

 

A more mainstream, tested method for controlling the PCI 6224 or PXI 6224 is the Data Acquisition Toolbox provided and supported by The MathWorks, Inc. I recommend this method for using your installation of MATLAB to control a PCI or PXI 6224.

 

Data Acquisition Toolbox® and MATLAB® are registered trademark of The MathWorks, Inc

 

Regards,

 

Andrew Brown

Software Engineer
National Instruments
0 Kudos
Message 2 of 4
(5,040 Views)

Thank you.

 

I am concerned about the timing of the data acquisition toolbox in matlab (i.e., the delay between when the code is processed and when the data is sent).

Do you by any chance now of work that was done to measure this?

If I understand correctly, MATLAB uses procedures that are based on C++ for this, implying that the timing should be quite good.

 

Thanks again,

Eitan

0 Kudos
Message 3 of 4
(5,036 Views)

Hey Eitan,

 

Unfortunately, since both Data Acquisition Toolbox® and MATLAB® are third party software we don't have any kind of information about the latency between data acquisition and publishing into the workspace. The engineers at MathWorks may have more insight into the issue, but my experience has been that the performance of the toolbox is roughly equivalent to using the DAQmx driver directly. Have a great weekend!

 

Data Acquisition Toolbox® and MATLAB® are registered trademark of The MathWorks, Inc

John B.
Embedded Networks R&D
National Instruments
Certified LabVIEW Developer
0 Kudos
Message 4 of 4
(5,025 Views)