如何在C++下使用NationalInstruments的命名空间
在C#环境下可以使用下面的方法,来调用NI的ArrayOperation的方法using NationalInstruments;
using System;
using System.ComponentModel;
namespace NationalInstruments.Analysis.Math
{
public sealed class ArrayOperation
{
public static double[] Clip(double[] inputData, double upperLimit, double lowerLimit);
public static ComplexDouble[] Concatenate(ComplexDouble[] inputDataX, ComplexDouble[] inputDataY);
public static double[] Concatenate(double[] inputDataX, double[] inputDataY);
public static ComplexDouble[] CopyColumn(ComplexDouble[,] inputData, int columnIndex);
public static double[] CopyColumn(double[,] inputData, int columnIndex);
public static ComplexDouble[] CopyRow(ComplexDouble[,] inputData, int rowIndex);
public static double[] CopyRow(double[,] inputData, int rowIndex);
public static int GetIndexOfMax(double[] inputData);
public static int GetIndexOfMin(double[] inputData);
public static double GetMax(double[] inputData);
public static double GetMin(double[] inputData);
public static ComplexDouble[] LinearEvaluation1D(ComplexDouble[] inputData, ComplexDouble slope, ComplexDouble offset);
public static double[] LinearEvaluation1D(double[] inputData, double slope, double offset);
public static double[,] LinearEvaluation2D(double[,] inputData, double slope, double offset);
[Obsolete("Use the MaxMin1D method to achieve the same functionality.")]
[EditorBrowsable(1)]
public static void MaxMin(double[] inputData, out double maximum, out int indexOfMaximum, out double minimum, out int indexOfMinimum);
[Obsolete("Use the MaxMin2D method to achieve the same functionality.")]
[EditorBrowsable(1)]
public static void MaxMin(double[,] inputData, out double maximum, out int rowOfMaximum, out int columnOfMaximum, out double minimum, out int rowOfMinimum, out int columnOfMinimum);
public static void MaxMin1D(double[] inputData, out double maximum, out double minimum);
public static void MaxMin1D(double[] inputData, out double maximum, out int indexOfMaximum, out double minimum, out int indexOfMinimum);
public static void MaxMin2D(double[,] inputData, out double maximum, out double minimum);
public static void MaxMin2D(double[,] inputData, out double maximum, out int rowOfMaximum, out int columnOfMaximum, out double minimum, out int rowOfMinimum, out int columnOfMinimum);
public static double[] PolynomialEvaluation1D(double[] inputData, double[] coefficients);
public static double[,] PolynomialEvaluation2D(double[,] inputData, double[] coefficients);
public static double Sum1D(double[] inputData);
public static double Sum2D(double[,] inputData);
}
}
现在想要把C#的程序,改成C++的程序,请问如何在C++环境里面调用ArrayOperation.QuickScale1D( phaseData, out mult )这个方法呀? --------------------编程问答-------------------- ** --------------------编程问答-------------------- 一样的调法,如果是C++/cli的话.
如果普通的C++,那估计NI会提供相应的C++接口.
补充:.NET技术 , VC.NET