07-30-2008 03:32 AM - edited 07-30-2008 03:34 AM
07-31-2008 09:29 AM
08-01-2008 01:45 AM
Hi Chris
Thanks for your reply. My issue sounds like the second example you gave, but I will explain my application in the hope there is a workable solution.
I'm trying to control a pulsed laser. An external pulsed signal, at approximately 50 Hz, is used to fire the laser. This trigger needs to be delayed by 100s of microseconds to control the power. I can successfully fire one pulse for every incident pulse at a set delay using the .vi I attached, by running this external trigger into PFI 1.
I would like to fire the laser only when required by an external laser marking program. This program supplies a TTL digital signal. Marking runs take a few seconds, and this signal may switch twice a second. I can use this as my external trigger into PFI 1, and I get a continuous pulse train, which stops pulsing when the TTL signal goes low.
I would like to fire a pulse a set delay after the incident pulse, only when the TTL is high. Can I do this on a USB-6259?
Thanks
Luke
08-04-2008 12:46 PM
08-04-2008 08:40 PM
Chris
That is the example vi I used.
I'm using the 50 Hz pulsed (laser) signal as my trigger. Every time the laser signal goes high, I generate one pulse a set time interval later. This interval needs to be controlled precisely as it determines laser power. This part works - if I supply the laser signal to the PFI line, I get a perfectly delayed single pulse out for every input pulse.
I would like to gate this output with the TTL (marking) signal. The marking signal is high when writing and low when moving the laser to a new start point - I don't want the laser to fire during this time. If I feed the marking signal in as the trigger source, I only get one pulse when the laser begins marking. If I feed the marking signal into the trigger property node, with the laser signal into the trigger source, I get continuous pulses out that are uncorrelated with the laser signal. It's crucial that the time interval between the laser and output pulses are maintained.
Can I gate the output? Or is this a case of trying to trigger off multiple lines as you mentioned before?
Thanks for your help
Luke
08-05-2008 11:43 AM
08-11-2008 01:43 AM
08-12-2008 01:27 PM
08-13-2008 01:32 AM
Hi Chris
Thanks for that last post. I've used the example you've given, and with a bit of tweaking got it working nicely.
Thanks for all your help with this issue - it's very much appreciated!
Luke