Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I program the cwCounter control to generate an AcquiredData Event?

I'm trying to use a general purpose timer on a 6024E DAQ card to generate an AcquiredData event every n MS.

I can get the timer to run, but I can't seem to get the AcquiredData event to fire. Here is the code I'm using:

ctrLoop.Reset
ctrLoop.device = 1
ctrLoop.Counter = 0
ctrLoop.ExceptionOnError = True
ctrLoop.InitialCount = 0
ctrLoop.MeasurementType = cwctrEvents
ctrLoop.NMeasurements = 10
ctrLoop.BufferMode = cwctrContinuous
ctrLoop.bufferSize = 10
ctrLoop.UseBuffering = True
ctrLoop.TimebaseSource = cwctrFrequencyTB
ctrLoop.TimebaseSignal = 100000
ctrLoop.Configure
ctrLoop.Start

I'm using the following:
Component works 6.0
VB 6 with Sp5
0 Kudos
Message 1 of 2
(3,351 Views)
Hello;

The event you are trying to program is not supported by your hardware. The best way to go about that is to generate a pulse train, on the frequence you want the counter to fire, with one of the counters you have on that board of your; and to have the output of that counter routed to the gate input of one of the counters of a TIO device. The TIO devices support triggered pulse train generations.

Regards
Filipe A.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,351 Views)