LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simultaneous serial and analog input DAQ?

Need to sample from the serial port and 4 channels
of analog input at the same time. Figured I need
to use an internal clock to sync the aquisition
since the serial port response delays every so
often. Does anyone know how to sample from an I/O
port and a DAQ card at a consistent sampling
frequency in LV? Any help would be greatly
appreciated.


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
0 Kudos
Message 1 of 3
(3,793 Views)
turtlejc@my-deja.com wrote:
>
> Need to sample from the serial port and 4 channels
> of analog input at the same time. Figured I need
> to use an internal clock to sync the aquisition
> since the serial port response delays every so
> often. Does anyone know how to sample from an I/O
> port and a DAQ card at a consistent sampling
> frequency in LV? Any help would be greatly
> appreciated.

You don't mention what kind of data rates you are talking about. I have
put together several systems that combine time-stamped serial and daq
channels, but in all cases, the serial data was running at around 1 Hz.
The daq channels were often running much faster (100Hz to 1KHz). If
your channels fit this description, then it is possible to synchronize
your data (more or less)
. You can use software timing to set up the
slow loop and acquire the serial data, and used buffered A/D to read in
the appropriate daq channels. The synchronization isn't perfect, but
may be "good enough".

Best of luck,
Dave Thomson

-------------------------------------------------------------
David Thomson 303-499-1973 (voice and fax)
Original Code Consulting original.code@technologist.com
National Instruments Alliance Program Member
-------------------------------------------------------------
Research Scientist 303-497-3470 (voice)
NOAA Aeronomy Laboratory 303-497-5373 (fax)
Boulder, Colorado dthomson@al.noaa.gov
-------------------------------------------------------------
0 Kudos
Message 2 of 3
(3,793 Views)
Hi,
for quite slow data aquisition try to use a multiple sequence within a
loop for reading multiple sources at nearly the same time. A wait
function can compose different data flowrates,
good luck

Andi

turtlejc@my-deja.com wrote:

> Need to sample from the serial port and 4 channels
> of analog input at the same time. Figured I need
> to use an internal clock to sync the aquisition
> since the serial port response delays every so
> often. Does anyone know how to sample from an I/O
> port and a DAQ card at a consistent sampling
> frequency in LV? Any help would be greatly
> appreciated.
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
Message 3 of 3
(3,793 Views)