Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

"zero offset" function

Hi,

 

I was wondering if there is any kind of "Zero Offset" functionality in Measurement Studio (I am using version 8).  I saw this in SignalExpress and it pretty handy.  Would would be the best way to achieve this in MS?

 

thanks,

bk

0 Kudos
Message 1 of 4
(4,149 Views)

Hi BK,

 

I don't know of an exact analogue in Measurement Studio. How you would implement it depends largely on which feature of the zero offset you want to use. Do you want to use the first n points of each waveform, do you want to set a constant offset, or do you want to take data specifically for calculating the offset.

 

Regards,

 

Luke B.

0 Kudos
Message 2 of 4
(4,129 Views)

Hello there,

 

Take a look at the WaveformPlot.DefaultIncrement and WaveformPlot.DefaultStart properties.

You also might want to take a look at this forum post.

 

Regards,

Vijet Patankar

National Instruments.

0 Kudos
Message 3 of 4
(4,109 Views)

Vijet/Luke,

 

I ended up just using the ACDCEstimator and calculating a DELTA between the DC Average and a target offset amount.  I thin shifted each element in the data array by this amount.  Seemed to work okay.  Something like this..

 

NationalInstruments.Analysis.SpectralMeasurements.Measurements.ACDCEstimator(z, out ac, out dc);
offsetAmount = OffsetTarget - dc;

 


for (int i = 0; i< data[0].Length ; i++)
{
data[i] += offsetAmount;
}

 

Viket - thanks for the WaveformPlot ideas.  Ill keep these in mind next time.

 

thanks,

bk

0 Kudos
Message 4 of 4
(4,106 Views)