LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

9234 Pretrigger

I am using a cDAQ 9174 Chassis with a couple 9234 Analog Modules... I'd like to record X seconds of data before a trigger, and Y seconds after the trigger into a TDMS file. I have no problem creating a trigger and storing the data after the trigger condition is met. I've looked into pretrigger and circular buffers, both of which I have no idea how to use or where the VIs for them would be... Please help!!!

 

Thanks!

0 Kudos
Message 1 of 7
(3,537 Views)

Found this... not sure how to use it but playing with it now... http://zone.ni.com/devzone/cda/epd/p/id/34

0 Kudos
Message 2 of 7
(3,532 Views)

Also, http://zone.ni.com/devzone/cda/epd/p/id/3438

 

That's the one I used when I first started.

---
CLA
0 Kudos
Message 3 of 7
(3,528 Views)

The problem is I want a certain number of samples of pretrigger which the link I posted does accomplish. However I also need data post trigger as defined by the user... 

 

I want pre trigger and post trigger data samples to be set by the user... My original posting does the post data, the second link does pre data... No clue how to get them to work together to record all this data in a single TDMS file.

0 Kudos
Message 4 of 7
(3,517 Views)

Pre trigger by M samples with a total sample length of N samples.

 

You'll have M samples before the trigger and N-M samples after the trigger.

---
CLA
0 Kudos
Message 5 of 7
(3,515 Views)

When this hits the threshold, why would it stop looping? I never see the triggered data on the output waveform graph, yet the trigger occured LED glows

0 Kudos
Message 6 of 7
(3,498 Views)

Hi Kbaker4,

 

It looks like you might be getting an error that is not being reported. You loop is wired to stop on an error condition, but you do not wire the error out of the loop. If there is an error in your subVI, it would stop the loop and not show your data on the indicator. Drop a Simple Error Handler VI outside your loop and connect the error wire in to it. See if it gives you a specific error message. 

 

Regards,

Kelsey Johnson

Applications Engineer

National Instruments

0 Kudos
Message 7 of 7
(3,476 Views)