01-17-2007 08:21 AM
01-18-2007 06:34 AM - edited 01-18-2007 06:34 AM
Hi there,
Well I have thrown together a vi that may help you out.
Now it's a little bit of a mess but you should get the picture if you dig down into the sub vi's I have also attached. Pretty much all it is doing is creating an array each itteration, and that array is a sinewave which keeps it phase. (You should see that if you set the delay to about 7ms the top graph display will show you both sine waves with one having a delay.
I have worked with arrays and producing arrays that have a fixed amount of elements (the samples per channel value). The delay is simply a set number of samples that correspond to the delay time needed. The sub vi, simply creates an array of elements (you can define the size) that keeps the phase from it's last output. the great thing about this approach is that you can adjust the amplitude and frequency on the fly.
Delay-AO.vi is the main vi.
I hope this does help, but don't hesitate to post back if you need clarification.
Thanx
AdamB
Message Edited by AdamB on 01-18-2007 06:35 AM
01-18-2007 08:28 AM
hi adam,
thanks for the reply, could you send me those files in labview 8?i'm afraid i don't have labview 8.2.
cheers,
stephen
01-18-2007 08:33 AM
01-19-2007 02:49 AM
Hi,
Did these help at all?
AdamB
01-19-2007 05:22 PM
hi adam,
they were both a great help thanks:)
cheers,
steve
01-24-2007 10:01 AM
hi,
i've tried changing a few things from the programs you gave me a while ago (shown above) to create my program to generate 2 AO waveforms with a time delay betwene them.however, when i run the program, it is telling me that the waveforms i want have been generated, but when i hook the AOs up to an oscilloscope to check, there is no signal.how can this be?my new program is given below.
steve
01-24-2007 10:13 AM
01-25-2007 08:00 AM
hi adam,
thanks for the help.however, just changing the sample clock to continuous samples won't help though, will it?after i have generated the initial waveforms (array with delayed waveforms), wouldn't i need to somehow append new wavforms continuosly to the end of these waveforms?how could this be done?also, i thought that the program ensures that the AI and AO occur at the same time- as the AO trigger is set to start when it gets a pulse from the AI start.
steve