FlexPro
HistoryBase
Engineering
Training
Downloads
FlexPro Support
Knowledge
Community
About us
References
Jobs
General Contact
List Of Retailers
FlexPro Support
EN
DE
FR
Placeholder
Products and Solutions
Support and Downloads
Company
Magazine
Contact Us
Language
MyWeisang

Account settings

Topic

How to adjust the sampling rates of different datasets

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #33430
    Bernhard 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?

    #33428
    Bernhard 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?

    #33429
    Bernhard Kantz
    Participant

    There is a function [b]Sample[/b] 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:
    [code]
    Signal(Dataset1, Sample(Dataset2, Diataset1.x))
    [/code]
    The formula above should be used only, if the X range of [b]Dataset2[/b] exceeds that of [b]Dataset1[/b]. If the opposite is the case, then the formula should be:
    [code]
    Signal(Sample(Dataset1, Dataset2.x), Dataset2)
    [/code]

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