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])