07-17-2015 09:49 AM
Hi,
I am having a hard time figuring out which of the Analysis Library functions have a .NET wrapper and which dont. Is there documentation on the C# library wrapper?
Regards,
Derek
07-17-2015 10:45 AM - edited 07-17-2015 10:46 AM
Hi, Derek
NI doesn't provide a wrapper API for the analysis library—instead, a fully featured .NET API is provided. I would start by taking a look at the Developing Measurement Studio Projects book in the Measurement Studio Help (right now, the only version of the help online is Measurement Studio 2012 for Visual Studio 2010, but you can access these topics using the help viewer in Visual Studio for your version). From there, there is the getting started walkthroughs with practical examples, the API reference with detailed class member information, and the 'using' topics for general guidance on how to use the APIs.
The Using the Analysis .NET Library topic might be what you're looking for. Please let us know if you don't find what you're looking for in there, so we can try to address any documentation defficiencies.
I hope that helps!
07-17-2015 10:57 AM
OK, so here is an example. How do I find out where in the .NET API the equivalent functionality of the TransferFunction API is apart from browsing the object in Visual Studio.
07-17-2015 12:21 PM
I would start in the Measurement Studio .NET Class Library Reference book (part of the Developing Measurement Studio Projects topic). From there, you'll notice there is a namespace called NationalInstruments.Analysis.SpectralMeasurements, and in that topic you'll find a link to the TransferFunction Class. Let us know if you have any other questions!
07-17-2015 12:43 PM
Thanks. I didn't realize that TransferFunction was only in the Enterprise version of the library.
What I am still looking for are the complex array operations such as CxAdd1D, CxSub1D, CxMul1D and CxDiv1D.
07-17-2015 02:00 PM
I don't think there are direct analogs to those functions. I think you can use the ComplexDouble, ComplexInt, or ComplexWaveform classes and their accompanying members to perform those operations. Those types are documented in the NationalInstruments Namespace topic.