Hopefully some kind soul can recover it or answer it. :)
--- In ultimaserial_group@yahoogroups.com, ultimaserial <no_reply@...>
wrote:
>
> *I am sorry, but I think accidentally deleted a good post from an user
> replying to this post when I was deleting spam posts :(
>
> --- In ultimaserial_group@yahoogroups.com, e.marken <no_reply@> wrote:
> >
> > I'm doing some research for a professor, working with equipment that
> > he purchased and have next to no programming experience. The
> > DI-148U-SP is being used to measure sensed signals at unique, discrete
> > increments. We are not using the first two channels, which have the
> > string pots, only channels 3 and 4. What I need to be able to do is
> > take X samples over a single second, store it in a variable array,
> > then write it to a data file, such as a .txt or another type. Below
> > is the code I was using.
> >
> > Private Sub Command1_Click()
> >
> > UltimaSerial.Device = Val(148)
> > UltimaSerial.CommPort = Val(USB)
> > UltimaSerial.AcquisitionMode = NoCondition
> > UltimaSerial.ChannelCount = 2
> > UltimaSerial.EventLevel = 2
> > UltimaSerial.SampleRate = 240
> > UltimaSerial.Start
> >
> > End Sub
> >
> >
> > Private Sub UltimaSerial_NewData(ByVal Count As Integer)
> >
> > Dim A(240) as integer
> > Ultimaserial1.GetDataEx A(0), 240
> >
> > End Sub
> >
> >
> > But the output A variable was only a 240 x 1 array. How should I go
> > about extracting the 240 samples from the 4 channels (even though I
> > only need channels 3 and 4)?
> >
>