12-15-2008 05:28 PM
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
Solved! Go to Solution.
12-15-2008 06:12 PM - edited 12-15-2008 06:13 PM
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.
12-15-2008 06:14 PM
hello,
thing like that ?
@+
Tinnitus
12-15-2008 06:16 PM
sorry for collision Master A
12-15-2008 06:25 PM
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. 😄
12-16-2008 03:57 AM
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
12-16-2008 04:06 AM
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?
12-16-2008 04:14 AM
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.
12-16-2008 04:30 AM
done, i delete the unneeded loop
@+
Tinnitus
12-16-2008 09:36 AM
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