Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

An error when trying to read inputs from 2 different sources through the DAQ

I need to get the input from a potentionmeter and an accelerometer at the
same time. When I work with them seperately each in a seperate LABview
program they operate well. but once I combine both of them in the same
LABview program, I get the following error: "Error 200279 occured at DAQmx
read (Analog 1D wfm NChan NSamp).vi

when I increase the input's sample to read from the default value (100) to
the 500, the program works well but its response time becomes really slow.
Yet in my application I need to have a fast response time.

So I was wondering if I can have both the potentiometer and the
Accelerometer, running simultaneously without having a drastic affect on
the response time of each.
0 Kudos
Message 1 of 2
(3,029 Views)
Could you post your code that is not working, or at least just the portion that does the DAQ?  This would help to analyze what's going on.  Are you by chance trying to make two separate calls to the same DAQ board?  If so, you need to read both channels with the same call.  You can pass the data to other parts of the program for analysis using queues or FIFOs.
0 Kudos
Message 2 of 2
(3,020 Views)