From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TTL triggering tdms AI Data Acquisition

Hi,

 

Currently as a part of my research work, I am trying to acquire data in a .tdms file from an analogue channel triggered synchronously by each rising edge of a TTL signal input by a signal generator to PFI0. So to be clear, I won't be having any reference of time. Data will be sampled each time a rising edge of the TTL signal is input. Therefore the sampling frequency would ultimately be determined by the frequency of the TTL signal I input by the signal generator.

 

Initially I was trying to begin from some examples available, however no luck so far. I hope you guys can help.

 

Thanks in Advance,

Carl

0 Kudos
Message 1 of 2
(2,370 Views)

Hi BCar,

 

Here is a link to a tutorial on how to set up triggering with DAQmx:

 

http://www.ni.com/tutorial/4329/en/

 

Figure 11 will probably be most helpful, because you'll need to use a while loop for collecting many samples.

 

Hope this helps!

 

-Ryan

0 Kudos
Message 2 of 2
(2,305 Views)