Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

How to store counter values running on cRIO?

Hello everyone.

 

I am reading digital input pulses from NI-9411 (used for Flow sensor, it reads digital pule from sensor),

  • FPGA.vi runs on 40MHz,
  • Couter reset at every 1 second. in FPGA.vi (Max pulse rate from Flow sensor 150 Hz

In HOST:vi how to store this valuses in a array. I used seperate timed loop with 1kHz and array size with 150 (N). 

I need Max counter value per second.

 

Array Max and Min vi not suppoetred in FPGA.vi, so i have to count in host.vi.

 

i am attaching screen shot of my FPGA and Host code.

 

Wating for your reply 

Tejas

0 Kudos
Message 1 of 5
(4,633 Views)

Hi Tejaskumar,

 

the easiest way to store values in an array is the built array function or autoarray with a for loop.

Or do I understand anything wrong?

 

regards

Tobias

0 Kudos
Message 2 of 5
(4,511 Views)

Hi Mr_Tejaskumar,

 

I just wanted to ask what hardware you used for the pulse readings (NI-9411) for a flow sensor.

 

Did you need to get the d sub connector kit?

 

cheers,

will

0 Kudos
Message 3 of 5
(4,265 Views)

Hello Will,

 

We was using BR 473 (150Hz) Flow sensor.

 

Regard´s,

TejasKumar

0 Kudos
Message 4 of 5
(4,260 Views)