LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Complex exponentials in Labview 7.0

Using Labview 7 with vision....

I want to create a 512*512 array where each value is of the form
exp(i*a*2*pi)
( a complex exponential).

How do I get the formula node to accept complex inputs and outputs, or is
there another way to deal with such functions in labview?

Cheers,

Graham
0 Kudos
Message 1 of 4
(3,743 Views)
Given a 512x512 array of a*2*PI, just use the regular wire math (no formula node needed) to calculate your function.

See attached image for an example.
0 Kudos
Message 2 of 4
(3,743 Views)
Hi,
I'm not sure that I remember this but

1. If parameter a is real value then z=exp(i*2*pi*a) corresponds to z=(r=1; thetta=2*pi*a) in polar coordinates. So all you need is to use "Functions->Numeric->Complex->Polar to complex.vi" to build your diagram.

2. Another way is that z=exp(i*2*pi*a)=cos(2*pi*a)+i*sin(2*pi*a). So you can calculate this sin and cos and build the complex number with Functions->Numeric->Complex->Re/Im to complex.vi"

Good luck.

Oleg Chutko.
0 Kudos
Message 3 of 4
(3,743 Views)
I tried both of these, but I have since found the best way in my case at
least (using large complex arrays) is to use a MatLab formula node

Cheers,

Graham

"Oleg" wrote in message
news:50650000000500000068280100-1042324653000@exchange.ni.com...
> Hi,
> I'm not sure that I remember this but
>
> 1. If parameter a is real value then z=exp(i*2*pi*a) corresponds to
> z=(r=1; thetta=2*pi*a) in polar coordinates. So all you need is to use
> "Functions->Numeric->Complex->Polar to complex.vi" to build your
> diagram.
>
> 2. Another way is that z=exp(i*2*pi*a)=cos(2*pi*a)+i*sin(2*pi*a). So
> you can calculate this sin and cos and build the complex number with
> Functions->Numeric->Complex->Re/Im to complex.vi"
>
> Good luck.
>
> Oleg Chutko.
0 Kudos
Message 4 of 4
(3,743 Views)