LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

software trigger

Hi !

 

I need to find a solution for a specific problem using a software trigger.

I am using a cDAQ system with NI9234 analog input modules and NI9263 analog outup modules.

 

my application needs to sample at full speed (51.2kHz)

 

I need to do the acquisition of 10 to 16 channels of microphones and use the first channel as trigger to output a 5V impulse.

The main difficulty is that i need a pre-trigger of about 10 second on my recording and need to output an impulse as soon as my first channel has reached the trigger level.

my recording must be 20s long so that the trigger on the fisrt chanel is at the middle of my recording.

 

I did try to acquire one sample at a time and stock it in a buffer but it does not work at full speed.

 

any ideas ?

 

thanks

0 Kudos
Message 1 of 3
(2,573 Views)

The trigger level impulse should be done in the FPGA.  That will make things very simple for that.  Use a DMA channel to pass your data up to the RT system.  In the RT, you could read the DMA channel and store the data in a lossy queue.  When the threshold is found, you just get the next 10 seconds worth of data and record everything.  You could probably save the data to disk while recording the additional 20seconds.  This will use a lot of memory.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 3
(2,561 Views)

Hi !

 

I don't have a RT platform, just a USB cDAQ... so i can not implement your solution.

 

thank you

 

Yann

0 Kudos
Message 3 of 3
(2,518 Views)