LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

viscocity meter

Hi everyone,
 
I'm trying to make a viscosity meter using some inductance sensors. The idea is that a metal ball is dropped into a test tube containing the liquid being tested. When the ball passes through the first sensor it should start a timmer.  When the ball passes through the last sensor it should stop the timmer. Using this time and distance, i should be able to calculate the viscosity of the liquid. I feel this shouldn't be too complicated to program but I'm new at LabView so I'm having a very hard time, especially with the timing (I can't figure it out). I should be able to input the number of sensors into the computer as we will be using multiple sensors.
 
I've tried to do some coding and so far I've been able to make a little led light light up when the metal ball passes through. However, I'm not very happy with the code as it's very hardcoded. The sensor works in such a way as to send an alternating voltage signal from about 1 mv to -1 mv. The range dramatically decreases when the metal ball is detected. I am using an analogue module (digital one can't read such small voltages). I was wandering if someone could look over my code and give me some suggestions on a better logic to use and some help on the timing too... I would truly appreciate it.
 
Thanks soo much,
kyu
 
psst: i've attached a plot of what I'm getting
Download All
0 Kudos
Message 1 of 2
(2,638 Views)

Hi Kyu,

In order to determine the time that has elapsed, you could implement the use of VIs such as "Get Date/Time String"  in order to acquire a timestamp. Here is a KnowledgeBase article detailing how to acquire these values in milliseconds (I didn't know how precise you needed the measurements to be.) Let me know if this helps!

Amanda Howard
Americas Services and Support Recruiting Manager
National Instruments
0 Kudos
Message 2 of 2
(2,593 Views)