03-25-2015 05:19 AM - edited 03-25-2015 05:21 AM
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
Solved! Go to Solution.
03-25-2015 05:48 AM
What are you intending to do with the isoline data - draw a picture?
03-25-2015 06:34 AM
How about the contour line.vi ?
http://forums.ni.com/t5/LabVIEW/temperature-surface-graph/m-p/2689661#M799633
Regards,
Alex
03-25-2015 06:43 AM - edited 03-25-2015 06:44 AM
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.
03-25-2015 08:22 AM
Yes, this is what I was looking for. Thanks a lot!