LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get the current index of the impulse pattern vi?

Solved!
Go to solution

I would like to be able to see the current index that the pulse pattern vi. According to the Labview help, a pulse is generated everytime the inputted delay (d) is equal to the index (i). Is it possible to get the current index that the vi is on? If so, how could I do this?

0 Kudos
Message 1 of 2
(2,419 Views)
Solution
Accepted by topic author Laura121

Laura121,

 

Your question seems to indicate that you may not understand how the VI works.

 

You refer to Impulse Pattern.vi in the subject line and Pulse Pattern.vi in the text of your post.  These are two different VIs.  From the context of your question it appears that you are referring to the Impulse Pattern.vi.

 

When the VI is called, it returns an entire array (of length = samples). For the Impulse Pattern.vi all the elements of the output array are zero except at index i = d, where the element has the value = amplitude.  So there is no concept of "the current index that the vi is on" with this VI.

 

Lynn

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