02-06-2006 03:34 AM
Hello
I have a question regarding timing in LabVIEW. I am using DAQ system. In my application I have two analog inputs and two analog outputs and I am giving 5 volt supply to analog input. I have connected two LEDs with O/P and two potential meters with i/p channels.
Now my task is to turn on the first LED for lets say 10ms and then off this LED and wait 5ms and turn on second LED for 10ms and do continually and when LED is in on mode I have to measure voltage of potential meter exactly in half time so if I on first LED for 10 ms I have to measure voltage of first P.M at 5 ms and same for second LED and P.M.
I am attaching LabVIEW vi which i have done for this task.
Could you give any suggestion for this task.
02-06-2006 05:59 AM
Are you using a multi function DAQ card?? Does it have Digital Lines on it??
if your requirement is to just switch on/off LED's my suggestion to you would be to use these Digital lines to turn on/off your LED's.
02-06-2006 06:17 AM
Thank you for reply
My DAQ has digital lines as well. And my task is not just turn on/off LED. my core work in when LED is on for 10 msec then i have to mesure voltage at exectly 5 msec. All in all i dont need to change in my hardware but i have to develope LabVIEW code for it and I have done some work on it as one can see in attached file.
Thanking You
02-06-2006 07:50 AM
Well you will never get that type of resolution with using any type of software timing, does your board have a counter on it, if it does you might could use that to your benefit.
I'm not even sure if LV real time is that accurate.