Digital I/O

Showing results for 
Search instead for 
Did you mean: 

Blue screen in Matlab with NI 6537b



I have a PCIe 6537b card 

I use Matlab (tried all combinations - 2014a or 2013a, 64 bit or 32 bit)

I use the latest drivers from NI web site

I work with desktop windows 7


I am trying to capture data with NI PCIe 6537b from matlab data acqustion toolbox  and get blue screen


I tried in different computers with differnt 6537b cards and always get the blue screen


I am using the following code:


s = daq.createSession('ni');
addDigitalChannel(s,'Digital_IO','Port0/Line0:7','InputOnly'); %That's NI 6537b
addClockConnection(s,'External','Digital_IO/PFI5','ScanClock'); %That's NI 6537b
s.Rate = 1000000;
s.DurationInSeconds =0.1;



 Thank you for your help!


0 Kudos
Message 1 of 4



Are you able to operate the 6537b from Measurement and Automation Explorer (MAX) without error? If you're not familiar with using MAX to communicate with hardware you can find more information here. Also, do you have any other software, such as LabVIEW, that you could try using the device with? It would be good to see if any call to this device causes problems or only ones made from particular software. Finally, could you let us know what version of DAQmx you have just to be sure? 

Miles G.
National Instruments
Staff Applications Engineering Specialist
0 Kudos
Message 2 of 4

Thank you for the reply!

It works well with LabView, the only problem is with matlab

I use NI-DAQmx14.1 (tried also older versions)

0 Kudos
Message 3 of 4

If this behavior only appears when running in MATLAB®, it may be best to contact their support or forums to see if they have run into this behavior before.


MATLAB® is a registered trademark of The MathWorks, Inc.

Miles G.
National Instruments
Staff Applications Engineering Specialist
0 Kudos
Message 4 of 4