11-16-2009 05:33 PM
I am having problems synchronizing my data acquisition. All acquisition
is started by an external trigger connected to the PFIO channel
I am Using a 6062-e Card with BNC-2120.
I have Analog Input, Analog Output, Counter Input and
Counter output.
I am acquiring 6 channels of analog voltage input from my
linear translation table.
1 - 3 Tri
axis Accelerometer
4 Gyroscope
5 Velocity
Command Signal
6 Velocity
Output
An Analog Voltage
Output write starts a specified delay time after the analog read is triggered
externally. It is used for releasing a switch. The analog output is a step that
remains high at a user specified level (+5V) for as long as the analog input is
acquiring.
The raw encoder signal from the motor is converted to ctr0
ctr1 through a chip and is acquired using counter read.
I need to make the counter read start when the Analog input
starts.
I attempted to do this by putting them in a timing sequence,
but it didn't work if the analog read was waiting for the trigger.
Additionally I need to send a single pulse at some delay
time to trigger the frequency generator used as the velocity command.
11-19-2009 08:23 PM
11-23-2009 02:19 PM
11-24-2009 10:37 AM
One option is to set DAQmx Read to a Timeout of "-1" in order to have the read block until samples are available. The code would look something like this: