Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Counter/timer PWM Pulse as a trigger to aquire data??

(1) I'm using the NI DAQpad 6015 multi-function card with the new DAQmx Driver. I'm using the counter/timer (counter 0, and counter 1) to generate 2 different PWM pulses to supply my sensor circuit. each pulse is a 1 second in duration. The pulse with 5m.sec duty cycle is the supply for my sensor. In addition to that, I'd like to use the 5 m.sec as a trigger to aquire the sensor reading. The DETECTIN POINT should be the middle of the HIGH State of the 5m.sec pulse (i.e just at the 2.5 m.sec point of the high state).  
 
(2) another point is: how to display the counter/timer pwm output pulses on the front pannel?? 
 
Attached is the VI i'm using (Complete PWM.vi)
 
regards,
 
0 Kudos
Message 1 of 3
(3,799 Views)
Hello alaali,

It sounds like what you need is a trigger delay property node.  This property node specifies an amount of time to wait after the Start Trigger is received before acquiring or generating the first sample. This value is in the units you specify with Start.DelayUnits.  This way you can still acquire using the trigger, and you can specify the delay to be 2.5 ms so that the point that you actually acquire will be 2.5 ms after the trigger.



Hope this helps.

Regards,

Message Edited by Raajit L on 04-23-2007 04:34 PM

Raajit L
National Instruments
0 Kudos
Message 2 of 3
(3,778 Views)
Hi Raajit,
Thanx for your reply. It seems to be the best solution to my problem.
 
 
thanx again,
Mohsen
0 Kudos
Message 3 of 3
(3,765 Views)