LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Capturing a segment of a waveform. Once.

Hello everyone.
 
This vi captures a certain number of pre samples and post samples from a waveform, when trigggered.
However, it continually overwrites these values when the next pre/post samples.
How can I change it so that it captures the pre and post samples only once, regardless of the trigger state.
 
Thanks guys.
 
 
0 Kudos
Message 1 of 11
(3,636 Views)
Do you want your trigger to be 'active' for only one capture sequence and ignore all the threshold crossings that will occur in subsequent iterations?
0 Kudos
Message 2 of 11
(3,630 Views)

Hello.

Exactly. Basically I want the capture to act on one trigger only and then stop, regardless of any subsquent triggers.

Thanks 

0 Kudos
Message 3 of 11
(3,625 Views)

I am kinda lost on this one.

I would appreciate the assistance.

 

Regards

Tom

0 Kudos
Message 4 of 11
(3,570 Views)
You could make a psuedo-state machine out of it.  I modified your code to include an extra boolean shift register.  It starts false and is set true only when a trigger is found.  By inserting an OR statement before the case structure, the shift regiseter forces the case structure to always be true.

I don't feel like I am explaining the changes all that well.  If you have any specific questions, let me know.
Message 5 of 11
(3,568 Views)

Hello Jason.

Thanks for the reply.

I am having difficulty opening the file, I have V7.1.

So if a trigger is found the case is in one state, but then is immedaitely locked in the othe state.

 

Regards

Tom

0 Kudos
Message 6 of 11
(3,562 Views)
Message 7 of 11
(3,561 Views)

It works Jason.

Thanks for the solution and the expalination.

All the best.

 

Regards Tom

Message 8 of 11
(3,556 Views)
I'm just doing it for the starsRobot wink because almost everthing I know about LabView, I learned in this forum.  And I enjoy giving back.
Message 9 of 11
(3,555 Views)
I forgot to give you the stars with all the excitement, sorry
 
Here you go!
 
All the best
0 Kudos
Message 10 of 11
(3,547 Views)