FlexPro Forum – Discuss Your Topic!

How to adjust the sampling rates of different datasets

Home > Community > FPScript > How to adjust the sampling rates of different datasets

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12543
    Bernhard KantzBernhard Kantz
    Participant

    I want to do an XY display of two datasets with different sampling rates. How can I adjust the datasets to each other so that they have the same length?

    #8206
    Bernhard KantzBernhard Kantz
    Participant

    I want to do an XY display of two datasets with different sampling rates. How can I adjust the datasets to each other so that they have the same length?

    #8877
    Bernhard KantzBernhard Kantz
    Participant

    There is a function Sample available in FPScript which can be used to re-sample a dataset. A formula to create a Dataset for XY-display could look like this:

    
    Signal(Dataset1, Sample(Dataset2, Diataset1.x))
    

    The formula above should be used only, if the X range of Dataset2 exceeds that of Dataset1. If the opposite is the case, then the formula should be:

    
    Signal(Sample(Dataset1, Dataset2.x), Dataset2)
    
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Weisang GmbH

Sophie-Krämer-Straße 13
D-66386 St. Ingbert
Germany

Tel. +49 6894 929600
Fax. +49 6894 92960 26

Company