Effacer les filtres
Effacer les filtres

DAQ NI USB 6008 in Matlab R2013a

1 vue (au cours des 30 derniers jours)
Emanuel Bicho
Emanuel Bicho le 9 Juin 2015
Greatings Thanks for reading this. I am using Windows 7. Matlab R2013a and the device DAQ NI USB 6008 with latest drivers.
When a run the code to read the input from the device, e find the following error :
Error using analoginput (line 46) The DAQ Legacy Interface is not supported on this platform. For more information on choosing between DAQ Legacy Interface and Session-Based Interface, see the documentation on choosing the right interface.
To learn about using data acquisition devices on the win64 platform, see the documentation on the session-based interface.
Error in script_daq (line 28) AI = analoginput('nidaq','Dev2');
The code is the following :
The code for getting the information is : AI = analoginput('nidaq','Dev2');
addchannel(AI,0); set(AI,'SampleRate',5000) set(AI,'SamplesPerTrigger',100) start(AI) data = getdata(AI); plot(data) xlabel('Amostras') ylabel('Sinal (Volts)') delete(AI) clear AI
Do i need to downgrade de version of the matlab to work with this device ?
I will need the device to input and output values from the NI USB 6008 connected to a water tank system.

Réponses (0)

Catégories

En savoir plus sur Digital Input and Output dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by