07-23-2007 03:33 PM
07-24-2007 04:26 PM
Thank you for posting on the National Instruments forum.
I am not exactly sure what you are asking. Are you trying to send a 1Hz signal into your
gate so that the counters are sending out pulses for half a second every half
second?
How the gate works is that while it receives a high signal, the counter will count edges and when the gate signal goes low the counter will stop counting. If that is what you are trying to do, then it sounds like you are setting up the counters correctly.
07-24-2007 04:35 PM
07-25-2007 10:21 PM
07-26-2007 08:34 AM
07-26-2007 05:57 PM - edited 07-26-2007 05:57 PM
To do what you want to do, you will need to have two
counters.
First you will have to setup a counter that generates a pulse at 1 Hz to be a clock for the other counter. The other counter will be doing a buffered edge count and will grab the counts every second because of the 1 Hz clock.
You will then have to subtract the count that you received with the count that you received on the last second. One thing you have to be careful of is if the terminal count is reached, then you will have to add the terminal count number since you will have a large negative number if you pass the terminal count.
Here is what it would look like in LabVIEW if you were to do
it there. I do not have a text based
version of this, but you can see what’s going on.
Message Edited by Nick F on 07-26-2007 05:58 PM