LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Different elements in two 1 D array

Solved!
Go to solution

Helloo

 

I am having two 1 D arrayes. one array consists of r values and other theta values. For example (See attachement) , I want to take the two r values for same theta values and so on fro other tetha valules. how is this possible?

 

Thanks

Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
0 Kudos
Message 1 of 31
(4,109 Views)
Solution
Accepted by topic author Nghtcrwlr

You did not tell us what kid of output you want, but a FOR loop should do what you need. Autoindex on the "angles" and not on the "Rs", and you'll get a 2D array.

 

Message Edited by altenbach on 12-15-2008 04:13 PM
Message 2 of 31
(4,092 Views)

hello,

 

thing like that ?

 

@+

 

Tinnitus

 

CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 3 of 31
(4,090 Views)

sorry for collision Master A

 

 

CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 4 of 31
(4,088 Views)

tinnitus wrote:

sorry for collision Master


No problem. As you can see, you have twice as many FOR loops as you actually need, but the idea is the same. 😄

0 Kudos
Message 5 of 31
(4,084 Views)

Hello Tinnitus

 

Am having Labview version 8.2.. I coudnt open ur VI. But still I used the vi that was posted by altenbach.

anywy thnx for ur help. Is there actually a way to open the higher versions of VI in lower one?

 

Thnx

Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
0 Kudos
Message 6 of 31
(4,060 Views)

hello Altenbach

 

Thnx for your help. I was not aware of the indexing stuff.. now it wrks. but still there is some difference in final answer...

for example suppose there is only 1 value of r ; r = 3. and theta = 90,180,270,360

 

SO complex numbers should be when  r=3 and theta =90 (1.5708 rad) ----->0+3i . the Re part of the answers is different in two cases.  See attachmenet

 

I think since it is anyway zero, that difference doesnt affect, right? What could be the reason for that difference in results?

 

Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
0 Kudos
Message 7 of 31
(4,057 Views)

Is there actually a way to open the higher versions of VI in lower one?

Its not possible. If you want to do so, just post here. Somebody using that higher version will convert it for your version. Smiley Happy

0 Kudos
Message 8 of 31
(4,055 Views)

done, i delete the unneeded loop

 

 

@+

 

Tinnitus

 

 

CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 9 of 31
(4,048 Views)

it's normal because of approximation of pi and calculation, try to use multiple of pi=3.14xxxxxxxxxxxxxxxxxxx  given in numeric palette -> pi constant

 

also you can modify numeric displaying  just for eyes to round values ...  (ex 3 digit after coma)

 

it doesn't affect standard calculation , expect in critical "asservissement" i think (translation not found)

 

@+

 

Tinnitus

 

CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 10 of 31
(4,018 Views)