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,988 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,984 Views)

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

0 Kudos
Message 13 of 20
(1,982 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,955 Views)

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

0 Kudos
Message 15 of 20
(1,933 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,916 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,898 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,880 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,869 Views)

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

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