I currently have a circuit set up with an NI USB-6501 connected to a mux and was wondering how to use MATLAB to send a digital signal from the NI device to the mux.
-
\$\begingroup\$ No practical experience here as I have only used Matlab for mathematical modelling but there is information on using NI devices with Matlab here. \$\endgroup\$Warren Hill– Warren Hill2017-09-15 15:57:30 +00:00Commented Sep 15, 2017 at 15:57
-
\$\begingroup\$ I've looked at that and didn't find it very useful but I appreciate your help \$\endgroup\$ALUW– ALUW2017-09-15 15:59:03 +00:00Commented Sep 15, 2017 at 15:59
1 Answer
The link provided by Warren is for analogue. Click here for digital.
From what I understand you are trying to get Matlab to send a digital signal to the NI and then the NI sends a signal to the MUX. If that is what you are trying to do then you need have code in your NI to take the data received from Matlab and transmit it to the MUX.
You need to distinguish are you only trying to communicate with the NI or are you trying to programme the firmware of the NI using Matlab as well?
If you are only trying to communicate with it then that link is all you need (provided you have already coded the NI to handle the data)