08-28-2025 04:04 PM
Hi,
I am attempting to calculate mass from a mass flow rate input at various points in time through Flex Logger. This calculation will open or close a solenoid valve to dispense a gas or shut off gas flow depending on the mass that has been dispensed over time. I want to dispense y grams of gas over x minutes. Once I have dispensed y grams of gas, the system fires a relay to close the valve and the system waits for the next time period to begin dispensing gas. However, I cannot determine how/if its possible in Flex Logger to run this type of time based calculation. My original plan was to multiply the average mass flow rate by the appropriate time period to obtain the mass dispensed in that period and add those values until the appropriate mass had been dispensed for the desired interval. The valve then closes until the next interval begins and the process starts over. Is there a way to do this within Flex Logger or will I need Lab View to control this process? Thanks!
08-28-2025 11:31 PM
@tbruton wrote:
Hi,
I am attempting to calculate mass from a mass flow rate input at various points in time through Flex Logger. This calculation will open or close a solenoid valve to dispense a gas or shut off gas flow depending on the mass that has been dispensed over time. I want to dispense y grams of gas over x minutes. Once I have dispensed y grams of gas, the system fires a relay to close the valve and the system waits for the next time period to begin dispensing gas. However, I cannot determine how/if its possible in Flex Logger to run this type of time based calculation. My original plan was to multiply the average mass flow rate by the appropriate time period to obtain the mass dispensed in that period and add those values until the appropriate mass had been dispensed for the desired interval. The valve then closes until the next interval begins and the process starts over. Is there a way to do this within Flex Logger or will I need Lab View to control this process? Thanks!
There are tailor made products to do this, any reason you need to bring a computer in the loop to do this?
Ideal automation solution should be hardware controlled, brining a computer in the loop also brings in the risk of what happens when windows decide to update and restart in the middle of your automation filling gas?