From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pulse width measurement

Much better with the DAQmx Task.

 

Wire "Data" directly into pulse measurements (you need the timing information!) and the pulse duration will be in seconds rather than in samples


"Should be" isn't "Is" -Jay
0 Kudos
Message 11 of 29
(1,312 Views)

Dear Jeff!

i try to do follow what u say! but i recieved ... no result!

this is my pic, show to u!

do u want my program ( *.VI)

help me! thanks!

Download All
0 Kudos
Message 12 of 29
(1,308 Views)

It would be best to have the actual VI.  Be sure to save the front panel defaults before sending on (Edit->Make Current Values Default).


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 13 of 29
(1,306 Views)

Check "Polarity" and "Export mode"

 

 

There isn't a full cycle of data so duty cycle can't be calculated


"Should be" isn't "Is" -Jay
0 Kudos
Message 14 of 29
(1,297 Views)

hii Crossrulz

i do that, but ... i have no more!

this is my program! help me check!

thanks!

0 Kudos
Message 15 of 29
(1,290 Views)

hii Jeff

i check about that!

i have .... nothings, this my program!

help me

0 Kudos
Message 16 of 29
(1,288 Views)
0 Kudos
Message 17 of 29
(1,287 Views)

If you read the dt from the DAQmx data, what do you get.  For some reason, the graph has 0 for the dt when I change it to a control.  This could cause some problems.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 18 of 29
(1,282 Views)

I also found that you want export mode to be "no period and duty cycle" and the polarity should be "low pulse".

 

NOTE:  I only set the dt for the waveform because the graph was giving me a dt of 0.  Coming out of the DAQmx Read should have a non-zero dt.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 19 of 29
(1,279 Views)

Dear Crossrulz!

i know, i have many problem in may program! but i do not know how to correct that!

help me! i need to finish this next week!

thanks! because this is first time i do with labview!

0 Kudos
Message 20 of 29
(1,277 Views)