Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to integrate a signal with respect to time

Hi, I am using an oscilloscope to get the current of a circuit I(t) and I need the charge Q(t) where I(t)=dQ(t)/dt.

now I am having a vector of I(t) of 1000 rows, I would like to have the primitive of that with respect to time as a 1000 rows vector.  Here is attached the VI iam using but I am getting a two elements as a result of the integration.

Do you have any idea how shoul I correct it?

Thanks in advance.

0 Kudos
Message 1 of 6
(4,432 Views)
You are passing the dt of each capture to the integrate function. You want to pass the channel data. I have no idea which channel the current is. You'll have to use the index array function on the 2D array you've created from both.
0 Kudos
Message 2 of 6
(4,425 Views)
The channel 1 is the current, I want to integrate with respect to time. the integration that I made is an attempt I am not sure if it should be like that.
0 Kudos
Message 3 of 6
(4,421 Views)
Then index element 0 of the 2D array and pass it to the integrate function.
0 Kudos
Message 4 of 6
(4,417 Views)
How can I do that?
0 Kudos
Message 5 of 6
(4,414 Views)

As I said, use the Index Array function.

 

You should really take one of the LabVIEW tutorials.

0 Kudos
Message 6 of 6
(4,408 Views)