08-01-2012 01:25 PM
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.
08-01-2012 01:39 PM
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.
08-01-2012
01:40 PM
- last edited on
11-11-2024
11:23 AM
by
Content Cleaner
Use shift registers to hold your previous time and volume.
08-01-2012 02:26 PM
Would ya'll be kind enought to maybe show me an example?
Thank You,
Mike
08-01-2012
02:30 PM
- last edited on
11-11-2024
11:23 AM
by
Content Cleaner
@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
08-01-2012 02:38 PM - edited 08-01-2012 02:39 PM
@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.
08-02-2012 10:10 AM
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!
08-02-2012 10:43 AM
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
08-02-2012 10:53 AM
Ok, so where are you stuck? What is it that you don't know how to do?
08-02-2012 11:02 AM
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