02-24-2023 03:57 PM
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.
Solved! Go to Solution.
02-24-2023 06:23 PM
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.
02-27-2023 06:57 AM
OK thank you.
03-06-2023 07:56 AM
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.