Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

NI6343 frequency counter problem for using multiple frequency counter input ports at same time

Hello,

 

I have a problem with frequency counting. I use the ctr2 and ctr3 port of my NI6343 for measuring frequecies of speed of my combustion engine and the frequency of a fuel flow sensor. My problem is that i can't measure the two frequencies at the same time. I can measure the frequency of each sensor in a single program. When i put the code of both the engine speed and fuel flow sensor in one program i get nothing on the numerical indicators on the front panel of my program. I have put my program in attachment. What can i do to measure the two frequencies at the same time?

 

Kind regards

0 Kudos
Message 1 of 2
(2,723 Views)

Hello Niariss,

 

Can you elaborate a bit more on what you would want to achieve?

I don't really understand why you would use implicit timing in this case.


How often do you want to measure the frequencies of the speed and the fuel flow sensor?

Do you want to have a measured Value each second or each 100 ms or faster?

 

I also saw that you dont seem to have any error handling in the loop

So if you have an error you wouldn't even notice it, nor would your loop stop.

 

Do both measurements have to be synchronized with eachother?

If not, then you can also just use 2 parallel loops (both at their own rate..)

 

 

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 2 of 2
(2,700 Views)