10-06-2021 07:36 AM
Hello NI world!
I have a NI PCI-6289 (with two counters) working on MATLAB Simulink R2021a. My purpose is to count pulses and find the frequency of a flow sensor which has square pulses output. 'counter block parameters', 'board setup' and simulink model to count pulses are shared with you in the attachments. Although the counter block has no output in Simulink, PFI0 pin counts the pulses in test section of NI-MAX application. Are there special settings to count inputs? Could you help me about this issue?
Thank you all.
Have a good day!
10-16-2021 05:00 AM
Hello,
Do I understand correctly that via MAX you open the test panel or you create a task and then when nothing is connected to the PCI-6289 you see pulse counts?
10-19-2021 07:33 AM
there is a flow sensor connected to DAQ. PFI0 pin is used to count pulses. the test panel of NI MAX counts the pulses but simulink does not.
10-29-2021 06:58 AM
Hello,
As I understand from NI side everything is working right.
I will be efficient to point your question to MathWorks.
Also, this is noted in the following article.
If you find the solution please share it here as well.