Jump to content

N.T.

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by N.T.

  1. Thank you for your help.

    Unfortunately the lenght is not normalized. But that's, what Interpolate 1d does. It's quite a mess, but it's working.

    A real pain is the behavior of the interpolate 1d vi, as it is using the given points as center for it's interpolation. You cannot specify the given point to be the beginning.

    Direction and Servo Load are binary values (as doubles) that have only 11 members, whereas the other arrays have around 2000-6000 members. The interpolation doesn't help that much.

    But that's another matter.

  2. I have a test rig capturing different values from sensors (momentum, position etc). Unfortunately those devices are USB, non-realtime and don't give a timestamp. I record the values within parallel loops and also storing the current time stamp value using the timer with high accuracy. Access times to the usb devices differ so I don't have a common timebase for the measurement.

    I eventually have a couple of arrays containing the values and timestamps.

    Now I try to bring them all to a common time base. I look up the first and the last timestamp, use the ramp pattern vi to create a fixed time interval and use the sum of the number of all arrays to not loose values inbetween.

    Unfortunately, the Interpolate 1D array vi is not capable of shifting the start time to bring the specific array within the start/end Range.

    As a very simplified example:

    Array A
    Timestamp   1    2    3    4    5    6    7
    Value       10   30   50   70   90   110  130
    
    Array B
    Timestamp   1.5  2.5  3.5  4.5  5.5  6.5  7.5
    Value       20   40   60   80   100  120  140
    
    Data after merging
    Timestamp	1.0   1.5   2.0   2.5   3.0   3.5   4.0   4.5   5.0   5.5   6.0   6.5   7.0   7.5	
    Value A		10    20    30    40    50    60    70    80    90    100   110   120   130   ---
    Value B		---   20    30    40    50    60    70    80    90    100   110   120   130   140

    Have you any idea how to solve this?

    So far....png

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.