On our older machine we have 2 DT9812. Each card has 1 AI, AO, and counter. The counter uses the CounterTimerSubsystem with the following configuration.
ctSS = device.CounterTimerSubsystem(0);
ctSS.CounterMode = CounterMode.Measure;
ctSS.StopEdge = EdgeSelect.GateFalling;
ctSS.StartEdge = EdgeSelect.GateRising;
ctSS.DataFlow = DataFlow.Continuous;
ctSS.Clock.Source = ClockSource.Internal;
ctSS.Clock.Frequency = 5000;
ctSS.MeasureDoneEvent += CtSS_MeasureDoneEvent;
Our new machine will need 3 counters, and up to 5 AI. However, the analog input isn't a solid requirement. We can read those elsewhere if necessary. I am aware I'll need to rewrite my code to use the universal library. That won't be an issue, as long as the driver can raise an event when the counter increments.
Is there a reason so many DT models say "Not recommended for new applications."? If we knew why, we might be more inclined to use them.