Integrator

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by Integrator

  1. Hmm, it does not work in my case. I just getting a triangle wave.

    What I need is this:

    Voltage: 3, 3, 1, 2, 3 (5 readings, one every second from Labjack channel, unit[V])

    Int1: 3, 6, 7, 9, 11 ( 5 calculations from channel Voltage, one every second, unit [Vs])

    I think it have something to do with the time format and that the latest values always are the index 0, and the other will be shifted in the array with every new reading.

    In my understanding I need something like this:

    Int1[newest] = Voltage[newest] * (Voltage.Time[newest] - Voltage.Time[oldest])

  2. Hello,

    I would like to integrate my analog input signal from the U3 Labjack. I have successfully generated my channel to display the input voltage correct. I have also found the post with the integration equations, but they don't work for me. I would like to get the following:

    In addition to my voltage signal I would like to display the integration over time for this signal. Life, same as for the voltage. I am logging one value every 1s. I am thinking the time format is making it difficult for me.

    Let's say my voltage is constant at 3V. Then I would expect a graph which rises 45 degree. So at 1s -> 3, 2s -> 6, 3s -> 9 ...Basically input*time(since start), value by value.

    Is this possible somehow?