ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pulse width

Solved!
Go to solution

I use LabVIEW2010 for measurements pulse width (pulse duration). using DAQ PCI 6052E. That is my program!

But my result not good! help me!

my sensor is Ultrasonic sensor SRF05

0 Kudos
Message 1 of 5
(3,286 Views)

What do you mean by result is not good?

 

I have few observations

 

  • You have useed simulate signal and passed it to the DAQ assistant why are you doing that?
  • Do not keep the DAQ mx configure and the clear task inside the while it will take a lot of time to allocate resource again and again when you create a task inside the loop

Check the attached snippet for using DAQmx (You can optmize it)

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 5
(3,278 Views)
Solution
Accepted by 29071985

my result not good, because, i can recieved result but that so big (very big) may be more than 400s

i did not know why?

0 Kudos
Message 3 of 5
(3,254 Views)

i show you pic of my result!

0 Kudos
Message 4 of 5
(3,241 Views)

Dear Anand

i using simulate signal to make sensor wworking!

i did not know about keep or not DAQ mx configure and the clear task inside the while, because this is the firsr time i use labVIEW!

i try to use your attached file! but i can not recieved accurate figures! ( may be minisecond or microsecond is good but i recieved more than 400 second)

can you help me! i did not know how to correct that!

help me!!! please!

i gave to you an image of my resulf!

thanks for your help!

0 Kudos
Message 5 of 5
(3,177 Views)