edp3
2008-04-23 17:10:12 UTC
I am not sure if I am even setting this up right. Using C# I am doing this:
private Task Meter;
..
Meter = new Task( "FlowMeter");
Meter.DIChannels.CreateChannel("cDAQ1Mod1/port0/line0", MeterInput, ChannelLineGrouping.OneChannelForEachLine);
Meter.Timing.ConfigureSampleClock("20MHzTimebase", SampleRate, SampleClockActiveEdge.Rising, SampleQuantityMode.ContinuousSamples);
Meter.Timing.ChangeDetectionDIFallingEdgePhysicalChannels = MeterInput;
Meter.DigitalChangeDetection += new DigitalChangeDetectionEventHandler(Meter_DigitalChangeDetection);
Is there a timer that I can access from the event handler Meter_DigitalChangeDetection? Or is another approach used? Thanks
private Task Meter;
..
Meter = new Task( "FlowMeter");
Meter.DIChannels.CreateChannel("cDAQ1Mod1/port0/line0", MeterInput, ChannelLineGrouping.OneChannelForEachLine);
Meter.Timing.ConfigureSampleClock("20MHzTimebase", SampleRate, SampleClockActiveEdge.Rising, SampleQuantityMode.ContinuousSamples);
Meter.Timing.ChangeDetectionDIFallingEdgePhysicalChannels = MeterInput;
Meter.DigitalChangeDetection += new DigitalChangeDetectionEventHandler(Meter_DigitalChangeDetection);
Is there a timer that I can access from the event handler Meter_DigitalChangeDetection? Or is another approach used? Thanks