Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ channel terminal in MATLAB is read-only

Solved!
Go to solution

Hello, I am using an NI-9422 to read in a signal for motor speed. I am reading in through the data acquisition toolbox in MATLAB. I can read the frequency fine for 1 terminal but I am struggling to understand how to read multiple terminals or a specific terminal.

 

For instance, the current assigned terminal is PFI5 and if I try to assign a variable ch to my channel and then re-assign the ch.terminal as PFI7 it says it's read only. I've also unplugged, and plugged the chassis back in and the default terminal changes which I can only solve by moving my wires.

 

What am I missing? Thanks for any help.

0 Kudos
Message 1 of 4
(995 Views)

You will have to post in MATLAB forum for better reach as MATLAB chose to abstract and simplify a lot of advanced features of DAQmx driver.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 2 of 4
(978 Views)

OK thank you.

0 Kudos
Message 3 of 4
(917 Views)
Solution
Accepted by topic author crandallc

The solution to this problem was just to add more inputs. Opening the NI MAX pinout helped clarify and I just had to call the channels ctr0-3 to access the other terminals.

0 Kudos
Message 4 of 4
(882 Views)