LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Delay in LabView

Hello everyone. 
I want to add a delay in my signal. How can I do so, in labview ?

Here's a better explanation :
Consider the signal y(n) = x(n) + (0.5)x(n-2) , where x(n) is an input signal and y(n) is the output signal. 
How do I implement the x(n-2) portion, using the labview tools ?

Thank You. 

0 Kudos
Message 1 of 5
(208 Views)

Hi SD,

 


@SD25 wrote:

How do I implement the x(n-2) portion, using the labview tools ?


Use a shift register.

(What is the meaning of "n" in terms of time units?)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(197 Views)

I am so sorry to not mention the time unit. 
'n' is a discrete integer, indicating the time in seconds.

x(0) and y(0) represent the signal values at n = 0 second.
similarly, x(2) , y(2) , x(1) , y(1) represent the signal values at n = 2 sec and n = 1 sec respectively. 

0 Kudos
Message 3 of 5
(182 Views)

Hi SD,

 

so you read one sample per second?

Still I suggest to use a shift register…

 

What is the required timing accuracy? Do you use any hardware timing of your DAQ device?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(180 Views)

I absolutely agree with @GerdW that the Shift Register ("Remember the previous value") is the way to go.  Something to think about -- what values do you want to use for points (-1) and (-2)?  Two possibilities are to use 0 (that's the quantity "zero", which, I think, would be the default if you "did nothing") or to use x(0), the initial value of the signal you are using.  Remember that you have to go back 2 points (which determines the appearance of the Shift Register).

 

Bob Schor 

0 Kudos
Message 5 of 5
(123 Views)