Volume from Flow signal
- This topic has 3 replies, 2 voices, and was last updated 20 years, 1 month ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
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
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.
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
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.
Notifications