From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to access only the third dimension within a 3d array?

Solved!
Go to solution

It looks like a good start.

 

Remember what I said about For Loops.  The iteration counter begins at 0.  But your loops start at either 1 (for n loop) or 2 (for i and j loops).  So you need to add 1 or 2 to your iteration value before you do anything else.

 

From here on, you'll just have to add more code to account for the other parts of your equation.

0 Kudos
Message 21 of 25
(278 Views)

thank you, i completed that section. and now need to set the boundary conditions because as i run the code i encounter the error that labvoew has run out of memory, so again using index array and replace array subset in the first loop i have to carry out this code. how could i equate them? 

 

u(1,:,n+1) = u(2,:,n+1) ;
u(length(x),:,n+1) = u(ni-1,:,n+1) ;
u(:,1,n+1) = -u(:,2,n+1) ;
u(:,length(y),n+1) = -u(:,nj-1,n+1) ;

 

kindest Regards,

0 Kudos
Message 22 of 25
(277 Views)

I don't know what you mean by "set the boundary conditions".

0 Kudos
Message 23 of 25
(274 Views)

i want to set a maximum limit for the arrays when they execute, as my code stand it doenst run because there isnt enough memory in labview. 

 

0 Kudos
Message 24 of 25
(271 Views)

See the boundary condition question in this thread.

 

Lynn

0 Kudos
Message 25 of 25
(265 Views)