Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Using the GPCTR0 to trigger a CWAI data acquisition in VB6.

How do I get the counter 0 to trigger data acquisition? My code looks right, but it won't start acquiring data (I'm using a 6023E).
CWAI1.StartCondition.Source = "GPCTR0"
CWAI1.StartCondition.Type = cwaiHWDigital
CWAI1.StartCondition.Mode = cwaiRising
CWAI1.Configure
CWAI1.Start
CWCounter1.Start

Thanks.
0 Kudos
Message 1 of 3
(3,251 Views)
Hello;

The best way to go about that is to use the Route objects to route the output of the counter you want to trigger of the Analog Input task to one of the RTSI lines, and then, specify the same RTSI line on the Start.Condition.Source.

Hope this helps.
Filipe A.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(3,251 Views)
Hi,
I don't know the details of you counter CWCounter1 configuration, but I'd use a CWPulse1 instead which automatically outputs the signal on GPCTR0 to generate a triggering pulse for your CWAI1.
0 Kudos
Message 3 of 3
(3,251 Views)