In the example program DaqInScan02, analog input, digital input and a counter input are used simultaneously in a continuous, background mode using DaqBoard.DaqInScan().
I have an requirement to use three analog inputs for reading voltage values and one counter to count the number of pulses per second from an encoder.
To configure the counter, can I use DaqBoard.CConfigScan() so I can count the number of pulses per second?
I'm passing the following arguements to DaqBoard.CConfigScan():
Question
PhilipW
In the example program DaqInScan02, analog input, digital input and a counter input are used simultaneously in a continuous, background mode using DaqBoard.DaqInScan().
I have an requirement to use three analog inputs for reading voltage values and one counter to count the number of pulses per second from an encoder.
To configure the counter, can I use DaqBoard.CConfigScan() so I can count the number of pulses per second?
I'm passing the following arguements to DaqBoard.CConfigScan():
MccDaq.CounterMode Mode = MccDaq.CounterMode.Totalize;
MccDaq.CounterDebounceTime DebounceTime = MccDaq.CounterDebounceTime.DebounceNone;
MccDaq.CounterDebounceMode DebounceMode = 0;
MccDaq.CounterEdgeDetection EdgeDetection = MccDaq.CounterEdgeDetection.RisingEdge;
MccDaq.CounterTickSize TickSize = 0;
int MapCounter = 1;
Will these values work?
The parameter MapCounter participates with the input signal by gating the counter or decrementing the counter. Can you elaborate?
12 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now