LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

re/im to complex VI

I'm having trouble to use re/im to complex VI to compose my imaginary array. I tried to compose a imaginary array by RE/IM to complex VI in LV. When I use a constant scalar DBL number(value=0.0)(as the real part) and known DBL array, it works and gives out a pure imaginary array. But if I use an constant array(each element=0.0, as the real part) and a known DBL array to compose the imaginary array I need, it doesn't work.
According to the help of this VI. the input could be scalar and array. I don't know why When I use two arrays as my input, it doesn't work.
0 Kudos
Message 1 of 7
(3,226 Views)
What is that doesn't work? Do you have a broken wire or is the results not what you expect? The attached picture shows that 2 arrays can be connected to the inputs.
Message 2 of 7
(3,226 Views)
The output is gray which means that no output comes out
0 Kudos
Message 3 of 7
(3,226 Views)
The indicator is gray? It should be gray until it's run. It'll also be gray if one of the input arrays is empty. Can you attach a VI that demonstrates the problem?
0 Kudos
Message 4 of 7
(3,226 Views)
I set the input real part as a constant array(elements=0.0, after running, the output INDICATOR is gray.
0 Kudos
Message 5 of 7
(3,226 Views)
You did not set the array as a constant with elements equal to 0.0. The array is empty. What you see as 0.0 is actually a default for a dbl but no actual values have been set yet. Double click inside the numeric and type 0.0. You'll see the shading change. If you want more than one value in the array, you have to enter those as well. If you want x number to all be 0.0, enter x into the index value and type 0.0 into the array value. All of the previous elements will then be set to the default of 0.0.
0 Kudos
Message 6 of 7
(3,226 Views)
thanks
0 Kudos
Message 7 of 7
(3,226 Views)