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 ?
Solved! Go to Solution.
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
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
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
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.
A modified version of your VI works perfectly fine !
I'll double check that tomorrow but for now it looks like it works !