FlexPro Forum – Discuss Your Topic!

Volume from Flow signal

Home > Community > General > Volume from Flow signal

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #12672

    I need to create a signal of volume (vs. time) from a flow signal – a record of a person breathing. This should be relatively easy except that the volume drifts, so I would like to reset the volume to zero at every -ve to +ve zero crossing of flow (i.e. at the start of a new breath.) I am going to need to do this every time I analyze a recording that I make so the process needs to be automated.

    Suggestions?

    Thanks,

    Paul

    #9105
    Bernhard KantzBernhard Kantz
    Participant

    There are two options:

    1.) Write a FPScript formula which gets the dataset as an argument and does the de-trending. You should use the LevelCrossings function to find all the positions and then loop accross each breath to substract the offset. You can use Drag & Drop for example to produce new formulas which call this function for a couple of datasets in one step.

    2.) Use Automation to access and modify the dataset by reading the data in chunks, processing it and writing it back to the same or to a different dataset.

    #8335

    I need to create a signal of volume (vs. time) from a flow signal – a record of a person breathing. This should be relatively easy except that the volume drifts, so I would like to reset the volume to zero at every -ve to +ve zero crossing of flow (i.e. at the start of a new breath.) I am going to need to do this every time I analyze a recording that I make so the process needs to be automated.

    Suggestions?

    Thanks,

    Paul

    #9106
    Bernhard KantzBernhard Kantz
    Participant

    Maybe, the following approach makes sense for this application:

    Use the FPScript functions UpperEnvelope and LowerEnvelope, to compute the enevelopes of the signal, re-sample them with the original X-data and then form the arithmetic mean (L + H) / 2. Substract this from your data to perform the de-trending.

    support@weisang.com

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.