Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Erroneous reading of Counter

Hi,
I have a Pentium 4 machine that has a 1.8GHz processor speed with 1GB RAM and I am using PCI 6221: M-series card

I am trying to measure the speed of a small motor running at/around 20 RPM along with some analog signals. I clubbed the analog signals into one task. But I am somehow unable to read the speed properly. It is giving erroneous values.

[Note: The counter sees only two pulses per revolution]

I am attaching the entire program.

Help would really be greatly appreciated!! If you want to make any changes and upload it, that would be great!!

Thanks a lot!!
UBAP.



0 Kudos
Message 1 of 3
(3,694 Views)

I'm afraid I don't quite understand your application.  You said that you're using an analog input to measure the RPMs of a motor running at 20RPM and then described a problem with the counter task.  I'd be happy to help you, but if you could break your application down into smaller parts I would appreciate it.

If the analog input is reading incorrect values I encourage you to use the Measurement and Automation Explorer test panels ensure that your card is connected properly and reading good values.  I also recommend you to do the same for your counter input depending upon what exactly you're using it for.

A number of examples ship with LabVIEW that demonstrate how to setup analog input and counter tasks.  You can find these in the Example Finder (Help >> Find Examples)



With a little more information about your application and details about what each acquisition task is trying to accomplish I'd be happy to point you in the right direction.

 

 

Elijah Kerry
NI Director, Software Community
0 Kudos
Message 2 of 3
(3,684 Views)
I am so very sorry. I did not intend to put the sentence "I clubbed the analog signals into one task." 
Anyways, I solved the problem.
It was more of a hardware problem.

Thanks a lot!
and I am sorry for the confusion.

UBAP.

0 Kudos
Message 3 of 3
(3,670 Views)