LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Questions about waveform integration

Good morning gents, I am new to Labview and I would ask you something about integrated waveforms.

I have a waveform signal and I have tried to integrate it in different ways (see pictures attached).

The results plotted on the graphs seems fine and right (I think integrated waveform 1 is the correct one), but I cannot understand well why in the other graphs the time scale on the x axis varies and why also the amplitude on the y axis is different in the integrated waveform 3.

 

I think that the problem regards the dt of the signal. 

 

I want also ask which are the differences between the integral blocks I used. 

 

Finally I would like to ask some suggestions on how to correct the visible "offset error" on the integrated signals and how to implement this offset error correction. 

Download All
0 Kudos
Message 1 of 7
(2,675 Views)

We cannot run or debug images. (Especially if there are express VIs, a lot is hidden from view).

Please attach your VI instead. Make sure it contains some typical default data for the signal array. Thanks.

 

(SIDE NOTE: to get an element of an array, "index array" is the right tool. Doing an "array to cluster ...unbundle" dance is not the right way...)

0 Kudos
Message 2 of 7
(2,662 Views)

Thank you for your suggestion.

Here I attach my VI, it is basic and simple.

I cannot attach the data  I work with because the .pnrf is not accepted as a format I can send here.

But the signal that comes out from from the read data channel is an array of waveforms and every signal contains a current waveform and a voltage waveform.

Download All
0 Kudos
Message 3 of 7
(2,634 Views)

@EdmondDantes wrote:

 

I cannot attach the data  I work with because the .pnrf is not accepted as a format I can send here.

 


But .zip files are an accepted format!  So just zip up your file and attach it.

0 Kudos
Message 4 of 7
(2,600 Views)

ZIP FILE: I cannot attach the data I work with,but I attach a test .pnrf file with two sinusoidal signals.

You can import on labview via hbmpnrf plug in.

0 Kudos
Message 5 of 7
(2,581 Views)

@EdmondDantes wrote:

The results plotted on the graphs seems fine and right (I think integrated waveform 1 is the correct one), but I cannot understand well why in the other graphs the time scale on the x axis varies and why also the amplitude on the y axis is different in the integrated waveform 3. 


The time scale issue to due to the fact that your last 2 graphs have nothing to give them a time reference.  Use Build Waveform to just change the Y portion of your waveform to use the new integration array.

 

The amplitude of the third waveform is different because you did not supply a dt.  Integration involves a multiplication of dt.

 

Here is a much cleaned up version of your code that should fix what you are having issues with.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Download All
Message 6 of 7
(2,578 Views)

@EdmondDantes wrote:

I cannot attach the data  I work with because the .pnrf is not accepted as a format I can send here.


No need to attach the data. Simply run the VI until it displays typical data. Now right-click the terminal of the "Original waveform" graph, followed by "create constant". Now delete the upstream code, the constant has a copy of the data. Save the VI under a new name (it will be a little larger on disk) and attach it here. (Please also give it a reasonable and unique name to prevent confusion. My downloads folder already has several "Try.vi", so the browser will rename yours to e.g. Try(3).vi when I try to download, potentially making me to open the wrong code by accident. A better filename might be WaveformIntegrationTest.vi, for example)

0 Kudos
Message 7 of 7
(2,558 Views)