Quantcast
Channel: Counter/Timer topics
Viewing all articles
Browse latest Browse all 1271

Charting Frequency Measurements Over Time

$
0
0

Hi,

 

I'm new to this, and would like to know if my approach sounds reasonable and perhaps have some guidance in the execution.

 

I want to build an application that will primarily allow me to plot wire-feed-speed measurements over time. The reason I say over time, is becuase I wish to additionally read AI signals from a motor controller containing motor speed and current. And "time" sounds like the obvious way to relate the measurements.

 

I am playing with a USB 6210 and have an encoder attached to a wheel in the wire-feed system.  Using a counter input I can measure frequency and then calculate wire feed speed.  I started with this example and it sort of works for me.

 

https://forums.ni.com/t5/Example-Code/Use-Counter-Frequency-to-obtain-an-Encoder-Rotational-Speed/ta-p/3524102

 

If I pull the wire for a second, the chart will start a display and continue charting long after the wire has physically stopped moving.  This has to do with the wait block.  If I reduce the wait time or simply remove it, the chart reflects more of what is physically happening.  However, if the wire stops moving, the chart stops charting.  This is where I get confused. I could essentially use this chart as is, but what if I want to read the AI data from the motor and compare it with the counter speed measurements.  I would need them to be synchronised over a delta t wouldn't I?  I have found other counter examples which read pulse width, frequency continuously and even synchronise with an AI, but I am missing the big picture with the timing.

 

Any clues?

Any other examples I should look at?

 

I'm also looking for some Labview beginner courses to expedite this process, only finding something hasn't been so easy.

 

Cheers,

 


Viewing all articles
Browse latest Browse all 1271

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>