07-16-2007 10:21 AM
07-16-2007 01:26 PM
Hello Ala,
depending on the rate of zero crossings, or the rate of TTL you will ouptut, you might just decide to use a software check on the analog value change. anything below the KHz regime is no problem.
for checking zero crossing you would not check =0, because this value might never exist at rate of aquisition, but rather if it crosses the zero, by checking the previous value (use a shift register).
for faster rates of TTLs, you might need a hardware solution. but i do remember some NI cards doing exactly this. will update if i get more info.
07-16-2007 04:07 PM
07-18-2007 07:37 AM
07-18-2007 07:43 AM
Hi James,
I cannot open the VI as I have labvciew 8.0, may you save it in that format for me please.
Thank you
Ala
07-18-2007 07:49 AM
HI James, attached is another VI, trying to do the same thing. I figured that in order to vary the phase of triggering, I will keep triggering on zero zrossing but vary the phase of the (wv2) in relation to waveform 1. So will it will always bew triggering at zero crossing it will be varied in phase relative to the first equation waveform, thus I can trigger at any phase i desire.
Cheers
Ala
07-18-2007 07:50 AM
07-18-2007 08:17 AM
07-18-2007 09:04 AM
Hi James,
Thank you for that, Attached is screen shot of the TTL and the analogue output. As you can see the TTL are not trigerring at a specefic instance with relation to the AO, and the pulse width varies(although this is not critical as I am triggering on the rising edge). I think the best solution would be to generate another simple waveform (WV2) at the same time of the equation waveform with the same frequency (low). Then use that signal to generate the trigger at zero crossing (WV2 labelleb in vi). Then to vary the phase with relation to the AO signal shift the simple waveform by a known phase and still trigger at zero crossing. Attached is the trigger illistration and a VI that shows the generation of the other waveform used for triggering. I have been trying to do this but to no avail.
Thank you
Ala