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: 

The Marching Squares Algorithm

Solved!
Go to solution

Hello all,

 

I have a question regarding the marching squares algorithm in order to construct isolines based on values in a 2D grid.

I tried to implement this algorithm in LabVIEW, but I haven't succeeded yet as I still can't wrap my head around the algorithm.

 

My question was if there is pre-written code of the marching squares algorithm? I also have my attempt to implement the algorithm VI  attached if that's any help.

My attempt is based on the information I have read on the wikipedia page Marching Squares Algorithm (http://en.wikipedia.org/wiki/Marching_squares)

 

Thanks,

 

Lucien

 

 

0 Kudos
Message 1 of 5
(4,551 Views)

What are you intending to do with the isoline data - draw a picture?

0 Kudos
Message 2 of 5
(4,540 Views)
Solution
Accepted by lucienmartijn
Message 3 of 5
(4,520 Views)

My intention is to draw an isoline of a magnetic field. Like this: http://2.bp.blogspot.com/_7VQT2zZL1g0/SpeE4451VbI/AAAAAAAAAFU/xESt6Uurh3k/s1600-h/fringe+Field+Side+...

I have measured the magnetic field of a transformer on 25 points in a 2,5 m x 2,5 m grid and am trying to calculate an magnetic field isoline based on my measured 25 points.

0 Kudos
Message 4 of 5
(4,515 Views)

Yes, this is what I was looking for. Thanks a lot!

0 Kudos
Message 5 of 5
(4,483 Views)