ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

3d graph and reverse iteration

This is quite a challenging problem and in order to explain the problem I have included a picture aswell.
 
What I want to do is scan a cúbe as shown in the attached picture in the following manner.
 
Firts scan the whole xy plane by incrementing x for each y. when the x reaches end of the array for perticular y, for the next y the values of x are decremented till it reaches the beginning of array. Similarly we scan the whole xy plane by incrementing x and y with certain steps. Please see the picture for better explanation.
 
After that the value of z is incremented by certain step and the whole process of scanning xy plane at that z starts but it only starts from the value of xy from previous z.
 
What is required is the graph of xy plane for different z values (basically at different height ). So the total number of graphs obtained will be the number of times z is incremented.
 
Could someone help me I should get around this problem?
 
kmo
0 Kudos
Message 1 of 14
(3,784 Views)

Since ohters are helping you on the scanning part of this challenge, here is a link to get started with the graphing.

http://forums.ni.com/ni/board/message?board.id=170&message.id=143663&requireLogin=False

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 14
(3,767 Views)

I am not sure if this is what you are asking for but here is a VI that scans for a given x, y, and z and I plotted it on the 3-D graph for you.

I made them seperate plots so its easier to see, but you could easily make it all one plot.

0 Kudos
Message 3 of 14
(3,761 Views)

hi evan,

can you please convert your VI to be compatible with LabView 7.1 ? I will come back shortly after checking your VI to let you know if it works or doesnt.

thanks.

0 Kudos
Message 4 of 14
(3,748 Views)
0 Kudos
Message 5 of 14
(3,740 Views)
Hi evan.. thanks for the vi, it worked!
 
Its the logic that was necessary!
 
In your vi everytime when the z is incremented the value of y is zero and it starts to increment from the beginning. Here instead what I needed was when the z increments, the xy scanning starts from the place where it previously ended. I just added that function to the vi.
 
I hope its the correct way to do it, can you please just have a look.
 

Message Edited by kmo on 01-10-2006 06:10 AM

0 Kudos
Message 6 of 14
(3,720 Views)

I changed both of ours up a little.  I just added the booleans and not them at the end of the correct scan.  I also added a second graph so we could see the actual "path" that was being taken.

It looks like it works fine, let me know if it doesn't for you.

0 Kudos
Message 7 of 14
(3,705 Views)
HI evan,
 
i am on and off this task so thats why couldnt reply earlier!
 
Your idea is definately great, to visualise the path.
 
Slight .. same old problem though, can you please change your vi to version 7.1 ?
 
thanks a lot.
0 Kudos
Message 8 of 14
(3,686 Views)

oh ,. that was my colleagues user name . I used it by mistake but yeah .. please do post the older verison of your vi.!

Message Edited by kmo on 01-12-2006 04:56 AM

0 Kudos
Message 9 of 14
(3,679 Views)
Here it is in 7.1
0 Kudos
Message 10 of 14
(3,665 Views)