LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

trigger and gate

Howdy folks,

I was reading the questions posted regarding the Trigger and Gate vi and it seems that others were having the same problem but there were no answers that addressed the issue causing the problem.

I have a waveform that, when generated rapidly, the trigger and gate works like a charm.  When I have a wave that is fat and takes longer than 1 second to complete, it seems that the triger and gate keeps outputting data until it completes since it is part of a subvi that dies not dictate the pace.  I was hoping to have that data wait until the entire waveform is collected and then have that output as one chunk.  Is this possible?  I tried using basic level trigger and gate but this proved futile since it kept the old gate in memory when I tried to index an array i built.

Please bestow some of your labview prowess on this soul in need,

KSM
0 Kudos
Message 1 of 6
(5,338 Views)

Hey, I want to make sure I understand.  Ideally, do you want to record data from something and then pass the entire data set through the gate / trigger VI?  If so, why don't you write the data to a file and read out the entire file at the end of a test?

Let me know if this helps!

Thanks!

Dan

Daniel Eaton
National Instruments
Systems Engineering
Embedded and Industrial Control
0 Kudos
Message 2 of 6
(5,316 Views)
Hi Dan,

what I actually want it to do is have the trigger and gate function capture all the data from trigger to gate and then output the data as a whole.  I am capturing waveforms but when the waveforms span over a long time, the triggering and gating still happens, only it gives multiple outputs due to timing of the program.  So ideally i would want to save the data to from trigger to gate and then grab that as one chunk.

Please let me know if this clarifies my question,
Khalid
0 Kudos
Message 3 of 6
(5,309 Views)
So, why don't you try something like this?  Then read the file out later.
 
Let me know if this helps!
 
Dan
Daniel Eaton
National Instruments
Systems Engineering
Embedded and Industrial Control
Message 4 of 6
(5,287 Views)
I think that this is probably the cleanest and best way to do it.  I was trying to use arrays to save data, etc. but this seems to be so much better.  I have never used it before so it didnt ring up in my limited registry upstairs.

Thanks Dan!

Khalid
0 Kudos
Message 5 of 6
(5,272 Views)
LOL.  Let me know how it goes!
Daniel Eaton
National Instruments
Systems Engineering
Embedded and Industrial Control
0 Kudos
Message 6 of 6
(5,260 Views)