Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Pulse stops all by itself in VBA!

I want to generate a single long pulse to act as a control gate for a timer & counters on 2x NI6602 cards. All timer/counter gates (7+8 chns) have been hardwired to the output pin of the pulse channel. This is to be part of a DAQ system using MS Excel (VBA), but I've created a test Excel workbook (attached).
The problem = The pulse (gate) stops mysteriously before the desired time!!!
Examples:
Input , Stops After
31000 , 76.23
10000 , 121.57
300 , 85.25
(all in seconds)
I actually only need a gate of about 10-30 mins.

The LabView examples specify the number of clock pulses rather than the VB pulse period (sec), so these examples are not much use.

I could not find the RSTI pins on the NI6602 card to use as an al
ternative. I thought this simple pulse-gate would satisfy my requirements!

I could have an external gate generator, but using the pulse I have more control over how the data collection can be stopped (eg button on screen, after certain pulse count, after specified time)
Thanks for your help.

Software Details:
Measurement Studio for Visual Basic v6.0
NI Hardware : Counter/Timer device PCI-6602
Driver Version : (latest)
Operating System: Windows NT
Application: MS Excel 2000
0 Kudos
Message 1 of 1
(5,919 Views)