Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate quadrature data

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

0 Kudos
Message 1 of 5
(5,733 Views)

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

0 Kudos
Message 2 of 5
(5,712 Views)

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

0 Kudos
Message 3 of 5
(5,708 Views)

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

 

0 Kudos
Message 4 of 5
(5,691 Views)

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

0 Kudos
Message 5 of 5
(5,688 Views)