Previous in Forum: tell me in brief   Next in Forum: control valve calibration
Close
Close
Close
3 comments
Rate Comments: Nested
Member

Join Date: Feb 2009
Posts: 5

LabView - Timing Measurements from AD Data

02/02/2009 9:35 AM

Has anyone done timing measurements from AD data in LabView -

I need to track a 60Hz signal and to a timing on stop and start of same.

Please advise a sample application I can review.

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Commentator

Join Date: Feb 2009
Location: Timisoara, Romania
Posts: 60
Good Answers: 4
#1

Re: LabView - Timing Measurements from AD Data

02/03/2009 3:06 AM

Hi!

Well, first I need to know exactly what you mean: is AD "analog device", "analog data" or "acquisition device" or something else? And you need to measure when the signal starts and when it ends?

If that is the case, there are two nodes you could use: "Tick Count.vi" or "Timestamp.vi". Now if you need to convert that time sequence in seconds, I recommend the second.

For example, you could have a while loop where you monitor the current value from your input, and test there if the signal started, maybe with a case structure. When it starts, call Timestamp.vi and end the while loop (use a True constant for the "Stop if True" button). Then start a new loop where you check when the signal ends. When that happens, call Timestamp.vi again and end the second loop. The only thing left is to calculate the difference between the outputs of the two Timestamp vis.

To achieve accurate dataflow, you need to make sure the second while loop doesn't execute in the same time as the first one, so use a wire to connect them (say the DAQ Task for example).

If you haven't used LabVIEW that much or if what I said sounds too complicated you can either go to Help and Find Examples (I don't have the software on my computer now so I can't help you with that) or sign in on the www.ni.com website - their web support is excellent.

Good luck with your measurements!

Patricia

P.S.: I had a summer job as tech.support eng. at NI ;)

__________________
Patricia_a
Register to Reply
Member

Join Date: Feb 2009
Posts: 5
#3
In reply to #1

Re: LabView - Timing Measurements from AD Data

02/03/2009 10:26 AM

Patrica,

Thanks for the response. AD = Analog to Digital interface - I was postulating using the NI 9215 in a USB DAQ box . That way I could run a PT to cut the 110AC to a 5Volt signal and a CT with a 5 V to match the 0-10V range of the 9215.

Thanks for the advice = I will look at each of those VIs

there are SO SO MANY options with LabView - I find it is better to query great minds BEFORE I start than go down a poor design path. Yours must be in that class.

Register to Reply Off Topic (Score 5)
Guru
United Kingdom - Member - Indeterminate Engineering Fields - Control Engineering - New Member

Join Date: Jan 2007
Location: In the bothy, 7 chains down the line from Dodman's Lane level crossing, in the nation formerly known as Great Britain. Kettle's on.
Posts: 32175
Good Answers: 839
#2

Re: LabView - Timing Measurements from AD Data

02/03/2009 5:01 AM

A 60Hz AC relay with a set of contacts connected to timing devices? Does it need to be more complicated than that?

__________________
"Did you get my e-mail?" - "The biggest problem in communication is the illusion that it has taken place" - George Bernard Shaw, 1856
Register to Reply
Register to Reply 3 comments
Copy to Clipboard

Users who posted comments:

drsimm1776 (1); Patricia_a (1); PWSlack (1)

Previous in Forum: tell me in brief   Next in Forum: control valve calibration
You might be interested in: Timing Screws, English Pitch Timing Belts

Advertisement