LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

plotting

Solved!
Go to solution

I want the height info in z axis so that all three points can be plotted, and there will not be larger changes in coords as all points will be near to each other so there wont be a memory problem.

0 Kudos
Message 11 of 20
(1,989 Views)

@Anjaney wrote:

I want the height info in z axis so that all three points can be plotted, and there will not be larger changes in coords as all points will be near to each other so there wont be a memory problem.


Memory use depends on the number of points, not on their relative distance.

Message 12 of 20
(1,985 Views)

There wont be many points sir there will only be max to max 3 points only

0 Kudos
Message 13 of 20
(1,983 Views)

Sir, can you please help in telling that will stem plotting will help me in this case.

 

0 Kudos
Message 14 of 20
(1,956 Views)

I am not familiar with the term "stem plotting". Please explain.

0 Kudos
Message 15 of 20
(1,934 Views)

Sir this is the VI please have a look,

why the points aren't getting plotted, kindly please help.

0 Kudos
Message 16 of 20
(1,917 Views)
Solution
Accepted by topic author Anjaney

Well, your string handling and array handling is all wrong.  You are only plotting 1 point, over and over and over again.

Get rid of the VISA stuff because it isn't doing anything and the Serial Configure does not belong in the while loop.  Also using Bytes at Port is wrong 99% of the time.

 

See attached modification.

Message 17 of 20
(1,899 Views)

Thank you @RavensFan for your support in helping me out am still learning lab view,

and sir can you please give me a hint on how to plot negative axis in the same graph.

0 Kudos
Message 18 of 20
(1,881 Views)
Solution
Accepted by topic author Anjaney

If you only plot three points, you can use a FOR loop and process at the end. (top code)

 

If you want to continuously add more points as they arrive, a single shift register is all you need. (bottom code).

 

If new points arrive continuously, but you only want to show the last three points, initialize the shift register with a 3x3 array of NAN and replace the oldest row whenever a new point is received (not shown).

 

StemPLots.png

Message 19 of 20
(1,870 Views)

Thank you Dr. Altenbach for support, helps me alot. 😄

0 Kudos
Message 20 of 20
(1,858 Views)