Hi,
I am using the SCXI 1600 USB DAQ Module with some Analog In (SCXI 1125 etc.) and one Digital In (SCXI 1162).
My task is to observe AI and DI. It is important for me, that the time lines for the AI and DI are in sync.
I thought the SCXI 1600 buffers the DI as well as the AI, but I was wrong: the 1600 buffers only AI and DI goes direct over the bus.
The Problem is now to assign the DI-Event to the corresponding analog cycles.
e.g.:
- 5 AI channels with 1kHz sampling rate (cont.): I read every 50ms 50 samples and take the mean =>rate is then 20Hz
- 1 line DI (the only working configuration is "on demand") I read the channel in the same loop, in which i acquire the AI's
At t=0 there is no data in the buffer of the SCXI1600
I get some load on the CPU, and the buffers is filling (t=load)
At t=event i get an change of the DI channel, but the corresponding AI value is older (t=load+x)
or not to technical:
I want to measure temperatures and the state of an valve (open/closed).
The temps are buffered and the valve state not.
How can I get these channels in sync?
thx
M.Tiedje