01-05-2007 09:12 PM - edited 01-05-2007 09:12 PM
Message Edited by snowman13 on 01-05-2007 09:17 PM
01-06-2007 10:08 AM
01-06-2007 11:46 AM - edited 01-06-2007 11:46 AM
Hi Snowman,
Could you provide a timing diagram defining the output pulses realative to the sync?
We do much better with pictures!
What kind of hardware are you using?
Ben
Message Edited by Ben on 01-06-2007 11:48 AM
01-06-2007 04:59 PM
01-07-2007 12:42 AM - edited 01-07-2007 12:42 AM
Message Edited by snowman13 on 01-07-2007 12:50 AM
01-07-2007 01:24 AM - edited 01-07-2007 01:24 AM
Hi snowman,
Your project seems to require a triggered output, either Analog, or Digital (DO or Counter). If your board is capable of a waveform output (Analog or Digital) you might be able to use a triggered waveform output. Not all DO/AO boards are capable of waveform output, but many of the cheaper boards still include Counters - exactly which board are you using?
Note: your original posts suggests using a loop to monitor the analog input to catch rising-edges. This could work with a much slower input frequency, but at 40KHz input-signal, LabVIEW won't be able to execute fast enough to keep-up!
Cheers.
Message Edited by tbd on 01-07-2007 01:29 AM
01-08-2007 08:44 AM
01-08-2007 03:08 PM
Hi Snowman,
I don't know how to apply a Phase-Locked-Loop to this! A very simple solution might be to wire your 40KHz signal to a Counter Gate input, and use the "Generate Retriggerable Pulse (DAQ-STC).vi" to generate an output pulse of desired delay/duration for every rising-edge of the input (see HELP\Find Examples.) But you'll need DAQ-STC Counters for that and...
... we still don't know what DAQ board we're working with. Try using "Get DAQ Device Information.VI" (\NI Measurements\Data Acquisition\Config & Cal) with Info.Type = "Device Name", or pull the board and look at it!
Cheers!
01-08-2007 07:10 PM
01-09-2007 01:37 AM - edited 01-09-2007 01:37 AM
Hi Snowman,
There are two good DAQmx/M-series synchronization articles here and here. I think your input/output signal synchronization might be implimented simply. See the attached VI which creates a timing-defined pulse with Analog trigger source (your 40KHz signal.) I don't have any hardware to test this with, but it's very similar to the "Gen Dig Pulse-Retriggerable.vi" from the DAQmx examples. (examples are good...)
I didn't find/see any examples of how to use the on-board PLL which seems to be used (exclusively?) by internal processes for synchronizing internal and external timebases - if you come across instructions for exploiting the PLL, please post back!
Cheers.
Message Edited by tbd on 01-09-2007 01:40 AM