LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

calculating the volume

Hello,

 

I would like to calculate volume of a liquid infused/withdrawn from a syringe pump. I will know the rate and time, but here's my volume formula:

 

Volume = RATE * (TIME(1) - TIME(0)) + PREVIOUS VOLUME

 

So I want to take the rate and multiply it by the difference of the original and previous times and then add the previous volume.

0 Kudos
Message 1 of 16
(3,605 Views)

You can either use a state machine and Shift Registers for "memory" to keep track of the previous result, or

 

You can use feedback nodes to send the result data back to the beginning of the formula.

CLD | CTD
LabVIEW 2011 SP1 | TestStand 4.5
0 Kudos
Message 2 of 16
(3,601 Views)

Use shift registers to hold your previous time and volume.


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 3 of 16
(3,599 Views)

Would ya'll be kind enought to maybe show me an example?

 

Thank You,

Mike

0 Kudos
Message 4 of 16
(3,591 Views)

@Mike227 wrote:

Would ya'll be kind enought to maybe show me an example?

 

Thank You,

Mike


Maybe you should start thinking about taking the free online tutorials hmmmm?


http://www.ni.com/white-paper/5241/en

0 Kudos
Message 5 of 16
(3,586 Views)

@Mike227 wrote:

Would ya'll be kind enought to maybe show me an example?

 

Thank You,

Mike


You mean my link to the video wasn't good enough for you?

 

Here's one for you to play with.


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 6 of 16
(3,580 Views)

Oh sorry! never saw the link.

 

Yea i will go ahead and mess around with it some. if i have any questions than i will post.

 

Thanks!

0 Kudos
Message 7 of 16
(3,553 Views)

ahh i'm still having some trouble. I looked at the videos and read the tutorial. My program looks pretty complex already. attached is my code.

 

I want to calculate the volume by using the rate multiplied by the time (ex: T(1)-T(2)) + the previous volume.

 

I want to use the seconds in the timestamp that I already have in my program

 

 

0 Kudos
Message 8 of 16
(3,535 Views)

Ok, so where are you stuck?  What is it that you don't know how to do?


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 9 of 16
(3,526 Views)

I want to calculate the volume by using the rate multiplied by the time (ex: T(1)-T(2)) + the previous volume.

 

I want to use the seconds in the timestamp that I already have in my program

0 Kudos
Message 10 of 16
(3,521 Views)