ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

Integrating a waveform in LabView MathScript

Dear Friends,

 

Can anyone please tell me how to integrate an oscilloscope generated waveform  in LabView MathScrip??I have the labview generated waveform which I want to integrate. Shall I use the polyfit and quad function??

 

Please explain in a bit details.

 

If possible can anyone give me a very small demo program for the same.

 

Waiting for your reply.

 

Thanks in advance.

 

Neelesh. 

0 Kudos
Message 1 of 2
(9,815 Views)

Hi,

 

You can use function trapz to calculate the integration. The attached snapshot shows an example to calculate the integration of a sine waveform. The MathScript code returns almost the same result as Integral x(t) VI.

Download All
Message 2 of 2
(9,807 Views)