03-06-2006 05:14 AM
03-08-2006 11:36 AM
03-22-2006 11:47 AM
03-22-2006 02:08 PM
I'm not very familiar with the specific capabilities / limitations of the DAQPad boards so here are 2 possibilities you can try:
1. Under DAQmx, I think you should be able to give them both the same freq & duty cycle, but set their initial delays to represent a 90 deg phase shift. The initial delay is the delay value used before the very first pulse -- thereafter the low and high times are used repeatedly.
2. You could set up the lagging pulsetrain as a retriggerable single pulse where the leading pulse acts as the trigger. This approach is probably a bit more complicated, so post back if the 1st method doesn't work out and you need more details on this method.
-Kevin P.
03-23-2006 06:22 AM
03-23-2006 06:39 AM
03-23-2006 10:56 AM
03-23-2006 11:15 AM
03-23-2006 01:19 PM
Sorry, my bad. In the back of my mind I was assuming they would both start off a digital start trigger since that's what I would do with my DAQ board. However, I don't think the DAQpad counters support digital start triggers. So option 1 really isn't an option for you after all.
Option 2 may still be a possibility but I'm still not 100% sure about your hardware. Your 1st (master) counter should be a continuous pulse train while your 2nd (slave) should do retriggerable single pulses, using the master counter's rising edge as a trigger. To set this up, you'll need to use a DAQmx Trigger property node with the "retriggerable" setting wired as True.
I'll assume that you'll have a low idle state with high pulses. Setup the right pulse specs on your master counter. For your slave, the "low time" and "initial delay" setting should be identical and equal to 1/2 the master counter's high time. The high time should be 1/2 the sum of the masters' high and low times, i.e., 1/2 the total period.
I *think* that should be the right settings if your hw supports retriggerable single pulses. There've been some recent discussions though which ultimately pointed to the following knowledge base article. The article, frankly, doesn't seem 100% crystal clear and consistent to me, but the conclusion seems to imply that you'll get consistent delay timing from trigger to rising edge if you set your initial delay and low time to be equal.
-Kevin P.
03-24-2006 07:16 AM