Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Data Acquisition in VB 6.0

I am tryng to acquire data at the rate of 1000 samples per/sec for aobut 10
seconds, but I can only get CompWorks to save (to file) about 10 samples
per second, and it does not take fractions of seconds into account.
0 Kudos
Message 1 of 2
(3,687 Views)
The secret is: acquire the data first into an array, then, save it to a
file. I'm assuming your
using VB.

Dim ScaledData As Variant ' these 3 lines acquire data per CWAI
wizard settings
CWAI2.Configure ' ie set up 1000 samp/sec for 10
seconds = 10,000 samps to acquire
CWAI2.AcquireData ScaledData, BinaryCodes ' first ....then save
to disk file.


Dim I 'these 4 lines stuff array Tdata which can
now be saved or manipulated
For I = 0 To 11 ' i'm using this to capture 12 x 1000
samples per second
Tdata(I, 0) = ScaledData(I, 0) ' the reason doing this way is
constantly saving to disk is time consuming.
Next I

hth
vince

Stephen Edge wrote in message
ne
ws:38f5cfab@newsgroups.ni.com...
>
> I am tryng to acquire data at the rate of 1000 samples per/sec for aobut
10
> seconds, but I can only get CompWorks to save (to file) about 10 samples
> per second, and it does not take fractions of seconds into account.
0 Kudos
Message 2 of 2
(3,687 Views)