Counter/Timer

cancel
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
(138 Views)

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?

__________________________________________
The best way to thank, is to give KUDOS
0 Kudos
Message 2 of 4
(96 Views)

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
(79 Views)

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.

__________________________________________
The best way to thank, is to give KUDOS
0 Kudos
Message 4 of 4
(43 Views)