07-24-2006 07:46 AM
07-25-2006 06:57 AM
07-25-2006 07:25 AM
07-26-2006 07:40 AM - edited 07-26-2006 07:40 AM
(removed the autogenerated code)
private void Gen_Data_Sine(double [] newData, int length)
Message Edited by SachaE on 07-26-2006 01:40 PM
Message Edited by SachaE on 07-26-2006 01:44 PM
Message Edited by SachaE on 07-26-2006 01:46 PM
07-26-2006 07:49 AM
And here's the information on the PolynomialInterpolation
public static
System.Double PolynomialInterpolation ( double[] inputXData , double[] inputYData , System.Double xValue , System.Double errorEstimate )Member of
NationalInstruments.Analysis.Math.CurveFitParameters:
Returns:
Thanks
Sacha Emery
National Instruments (UK)
07-26-2006 07:50 AM
07-27-2006 09:03 AM - edited 07-27-2006 09:03 AM
Hi,
the align and resample express vi is actually a wrapper over a large amount of functionality.
Depending on the exact configuration set (you say you'd prefer the FIR implementation) I've drilled down into the VI and assuming that you don't actually need the alignment section, just the resampling on a finite data set (so not continuous data supplied in parts), the vi looks something like this :
As you can see, the maths involved imply that the filter co-efficients have to be calculated and then the above vi is called, and eventually it looks as if it performs a linear interpolation on a point by point basis, however before the waveform data reaches this point, it's been heavily modified in terms of re-timing and generating the filter co-efficients themselves, so it's not a trivial "one vi" approach, hence there's no simple direct function in measurement studio to do this.
Your best approach would be to get a copy of LabVIEW (either full with application builder, or professional versions) and build a .DLL from the functionality that you need. You could then call this from your c# code as you require.
Does that help at all?
Thanks
Sacha Emery National Instruments (UK)
Message Edited by SachaE on 07-27-2006 03:04 PM
07-27-2006
09:24 AM
- last edited on
07-13-2025
09:57 PM
by
Content Cleaner