Hi,
I am trying to make a fuel consumption meter using gravimetric method in LabView. The idea is to get the initial weight then once the valve (manually operated) is open for a certain amount of time (e.g. 10 secs) get the final weight (via button click or if it can be done without button and not affecting the value of the initial weight the better). The fuel consumption will then be computed based on these data.
As of now, my code is working fine but I am suspecting it is not the correct way or efficient way. Also, I want my code to work continuously (not stop and re-run the vi over and over again) since I need to get multiple readings from a single test.
For additional information, I am using a load cell, a Dacell strain amplifier with display, and Arduino UNO board. The load cell is connected to the strain amplifier (+EXC, -EXC, +SIG, -SIG, GND). The Arduino is also connected to the strain amplifier via RXTX connection.
This is how the back of the strain amplifier looks like (below):
My setup looks something like this (below):
I attached a screenshot of my panel and block diagram .
Thank you.