I am trying to measure 8 frquencies using a FP-CTR-502. Since I need 8 channels I cannot use the hardware timer method of generating a 1kHz reference pusle like the examples use because that would consume one of my channels. What I tried to do was read the counts from the 502 along with the timestamp. Then I reset the counters and recorded the timestamp then. From there I subtracted the timestamps (previous reset from current read) and divided that into the count to obtain frequency. I set it up in a sequence structure to make sure the counters were reset after they were read. The whole thing is in a loop repeating at 1 or 2s. I seem to be getting eratic results on a slow computer. Is this method valid? Is the time stamp fr om the FP hardware, or is it fromt he computer clock? Could the computer somehow cause this problem? Any help would be appreciated.
My best recommendation is to purchase another CTR module. Using software timing will usually give you erratic results. That being said, make sure to use the "tick count (ms)" function if you must use software timing. That is the most accurate method for software timing. Also, you should set the counters to reset on read as recommended in Method 2 of this KnowledgeBase: