Integrator

Members
  • Posts

    4
  • Joined

  • Last visited

Integrator's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I got it now. Thank you. Just one more thing, how I can get the time difference since start? Voltage.Time[0] - Voltage.Time[max] ?
  2. Here is my file. Maybe there is a typo, not sure. I am new to this software. My final goal is to log the voltage from a battery which will be drained by a Resistor. Then also calculate the drained Capacity, where P=U^2*R. And P*time is the capacity in maybe Wh. So I would like to have it life, or 1 or 2 samples delay. Not a post calculation. test.ctl
  3. 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])
  4. 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?