Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I sych start of while loop with start of Triggered Analog Read





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.





Download All
0 Kudos
Message 1 of 4
(3,474 Views)
Is there any way to extract trigger information from the taskto be triggered, so that I can start my loop??
0 Kudos
Message 2 of 4
(3,444 Views)

I ll try to ask this in another way. How can I make my while loop wait for the analog read to start.

 

The analog read is triggered externally on the PFIO channel. 

 

Please Help.!!!

0 Kudos
Message 3 of 4
(3,420 Views)

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:

DAQmx Determinism.jpg

Seth B.
Principal Test Engineer | National Instruments
Certified LabVIEW Architect
Certified TestStand Architect
0 Kudos
Message 4 of 4
(3,401 Views)