10-24-2016 07:55 AM
Hi there,
I am trying to sum up the total amount of fluid my pump will pump into my rig. I also need a slide bar that would show me that amount of fluid pumped, knowing that I need to sample every 15mL injected (so the slide bar is set from 0 to 15).
I was thinking that my VI could work, but for some reason I ignore it doesn't behave properly. I can't really reset the bar to zero, and if I do, it won't fill anymore.
would you please help me setting a VI that could permit me to see the progression on the bar, and when it's full, leaving me the opportunity to reset it to zero (in order for it to start filling again) by clicking on a button ?
Cheers,
Flo
Solved! Go to Solution.
10-24-2016 02:32 PM
1) delete 60 sec delay!!!
2) store slide bar in shift register
3) if you want reset only slide bar, but not total fluid injected, then you need 2 shift registers
10-25-2016 03:54 AM
The problem is Ineed the 60s delay as I am sampling my variable every 60s 😞
10-25-2016 05:12 AM
if you set 60s delay, your UI will react once in minute.
You can add timer and when time elapsed, ask new sample, another case take 0 as FR CP
10-25-2016 06:02 AM
It seems to me that you got what the problem was. But I don't precesly understand your point.
Could you please be more specific?
I am close to solve that, thank you very much for you help 🙂
Flo
10-25-2016 08:51 AM - edited 10-25-2016 08:54 AM
Basically, in the example above, set the value going into the Event structure timeout input from 1000 to 60000, this will cause the Event Structure to fire off the 'Timeout' Event once every 60000 ms (60s), you would then put your sampling code inside the 'Timeout' event. Copy the image below to a block diagram for example.
Edit: Fixed image to show 60000 ms delay.
10-25-2016 12:26 PM
A modified version of your VI works perfectly fine !
I'll double check that tomorrow but for now it looks like it works !
Thank you!
Flo
10-25-2016 03:24 PM
Good to hear.