Showing results for 
Search instead for 
Did you mean: 

NI PCI-6289 Counter Channels

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!

0 Kudos
Message 1 of 4



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?

The best way to thank, is to give KUDOS
0 Kudos
Message 2 of 4

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.  

0 Kudos
Message 3 of 4



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.

The best way to thank, is to give KUDOS
0 Kudos
Message 4 of 4