06-23-2014 06:13 PM
I'm using Measurement Studio 2012 Professional and need to generate a sine wave with quadrature output (idealy with a little noise thrown in).
I've examined the SignalGenerator class and cannot find how to have it generate complex data. I understand I can create a complex data type and load the real component but I would prefer real phase and magnitude components.
Can anyone steer me in the right direction please.
Regards
06-24-2014 07:30 PM
Hey Frank334,
What specific functions have you been looking at? Have you checked this out at all?
SineSignal Contructor: http://zone.ni.com/reference/en-XX/help/372636F-01/mstudiowebhelp/html/bb7ebfe3/
Thanks,
Myriam D.
Applications Engineer
National Instruments
06-24-2014 08:55 PM
Hi Myriam
SineSignal and SignalGenerator functions look perfect, except I cannot find how to make them generate complex data.
I require true complex not just loading a complex array with reals from SignalGenerator and zeroing the imaginary.
Is there a way to have a signal generation function producde complex data?
For now if written a method using sin/cos etc. but would much prefer to use a measurement studio function.
Regards
Frank
06-25-2014 07:48 PM
Hey Frank334,
I did some more research into complex data types in Measurement Studio and found the following information, which may be a good place for you to start. There is a ComplexWaveform class available, which supports the ComplexDouble data type. The ComplexDouble Structure should let you define complex data by phase and magnitude.
ComplexWaveform Generic Class: http://zone.ni.com/reference/en-XX/help/372636F-01/mstudiowebhelp/html/cd111482/
ComplexDouble Structure: http://zone.ni.com/reference/en-XX/help/372636F-01/mstudiowebhelp/html/b847c3b9/
Myriam D.
Applications Engineer
National Instruments
06-25-2014 08:27 PM
Hi Myriam
Thanks for your continued effort.
From what I understand the ComplexWaveform class is simply a complex number repository and allows various ways of manipulating and extracting whatever you put in. Looks quite useful but does not do what I need on this occassion.
I was hoping the MS library would have a simple signal generator that output in complex (I/Q) rather than reals. It seems this is not a common thing to do as there does not appear to be any support for this - pity, as there does seem to be excellent support for general signal generation.
Thanks again
Frank