LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sample Delay VI

Currently i'm using Labview 7.1 embedded together with speedy-33. i had my audio input to speedy-33 from my PC sound card and i wish to delay the time of my signal by let say 1sec. I had my left signal connect to the sample delay vi then from sample delay vi to audio output. Audio in (only one channel,left)--> sample delay --> audio output i should heard a delay of 1sec when a audio signal i played but there is no delay. i use two waveform graph to observe the signal before and after the sample delay vi and indeed there is a delay as the waveform are different.
0 Kudos
Message 1 of 21
(4,381 Views)

Alantino,

If you are reading in data as an input and want to output it at a delay, try using the Wait.vi.  Wiring a constant of 1000 to it will wait 1 second before outputing the data.

reggier

0 Kudos
Message 2 of 21
(4,329 Views)
Thanks for the advise reg, but my analog input is unable to send data to the wait.vi, i suppose that the array size is different or whatever. Any advise or alternative?? Thanks
0 Kudos
Message 3 of 21
(4,311 Views)
I think you misunderstood what Reg was suggesting. The data doesn't run through the wait. The wait executes between the input and output operations. Can you post your code?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 21
(4,299 Views)
The file attach has a input sin wave connected to a sample delay vi and then to a analog output.
Waveform graph were ploted before and after the delay for comparsion.
 
Thanks for the help.
 
 
0 Kudos
Message 5 of 21
(4,286 Views)
Could you post the Sample Delay VI also?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 6 of 21
(4,277 Views)
Hi mike,
i'm not sure what i post is what you want.
0 Kudos
Message 7 of 21
(4,252 Views)
There's a subVI named Sample Delay.vi that is used in all the code you sent me, that is the one I need.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 8 of 21
(4,241 Views)
Hi mike, May i know from where can i find the file?? Such as under which folder. I search for the sample delay.vi file under labview 8.2 folder in my c drive but nothing was found.
0 Kudos
Message 9 of 21
(4,233 Views)
Well you had to put it into your block diagram. Where did you find it? This is the subVI that is on the right in the code that you posted.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 10 of 21
(4,229 Views)