LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I create a timer.

In labview 8.6 I need to measure an event 50 times. Each loop I want to measure the time it takes for a waveform to go from 0 to 500 mV peak to peak.

And then dump this time to a file. I will be looking at the waveform with an Agilent DSO6012 scope. 

Its going to vary by a little every test. This needs to be done 50 times.

I don't know how to do a timer in labview.

Any ideas on how to do this? 

 

Thanks for the help.

0 Kudos
Message 1 of 6
(3,366 Views)

Seems to be an offshoot of this: http://forums.ni.com/t5/LabVIEW/Cursors-don-t-match-what-is-on-the-scope/m-p/1469644

 

From what you're describing you're not really creating a timer. You're just measuring something 50 times. I don't see where you're timing anything. So, you'd basically need a loop that runs 50 times. How are you measuring the time? With the scope, or with LabVIEW?

 

As for dumping the information to file, there's lots of possibilities. The easiest would be to just use Write to Spreadsheet File.

Message 2 of 6
(3,336 Views)

I am measuring or timing the amount of time it takes for a waveform to go from 0 to 500mV.

Which I want Labview to do this for me automatically.

Isn't that the purpose of Labview automation? 

I am doing it with a Agilent scope, which I said in the first post. Unless there is some other magical way that Labview can read a real world waveform.

I thought I gave enough information in the original post for somebody to understand the problem.

 

IF you can help me then please do if not, thank you have a nice day.

But please dont waste my time with worthless responses.

 

0 Kudos
Message 3 of 6
(3,313 Views)

Actually your question is quite confusing.  If you have a waveform dumped from an oscilloscope then you already have the timing information you need.  It is simply the length of the X axis of your waveform between the points where the Y axis crosses zero and then crosses 500mV.  ALL scopes have a timebase so you already have your answer.

 

If you really want help, explain your problem better.  Otherwise, please don't waste our time. Smiley Tongue

 

EDIT:  Here is the link for your scopes drivers if you haven't downloaded them yet:  http://sine.ni.com/apps/utf8/niid_web_display.model_page?p_model_id=7562

They should help if you load your waveforms into LabVIEW where you can analyze them easily.

 

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
Message 4 of 6
(3,310 Views)

You need to read the voltage continuously.  When it is 0mV, you start the timer.  When it is 500mV, you stop the timer and get the time elapsed.  You can use the function in the timing pallete

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 5 of 6
(3,303 Views)

 


rcard53762 wrote: 

IF you can help me then please do if not, thank you have a nice day.

But please dont waste my time with worthless responses.


I think I'm going to off over here where I can find some grateful people and just make up some more worthless responses for them. Because, you know, that's all I'm really good at, according to you.

 

P.S. Have a nice day too.

Message 6 of 6
(3,293 Views)