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: 

Build an array and plot XY Graph for logged data in real time

Hello All,

 

Actually, I am new to the Labview and I am stuck at one problem.

Here, I have attached my VI's. I want to logged the centroid value in array and want to plot the XY graph. 

 

Apart from it if any body can suggest me how can I increase my image processing.

 

Any help would be appreciate. 

 

Thanks 

 

Download All
0 Kudos
Message 1 of 4
(3,069 Views)

Hello,

 

I am not quite sure were you have a problem, can you be more specific about waht you are stuck with ?

 

Otherwise, useful info on how to use the XY Graph : https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019NAfSAM

CLAMaxime -- Kudos are a great way to say thank you
0 Kudos
Message 2 of 4
(3,059 Views)

In my VI you can see I am getting centroid value from subVI. 

1. I want to make to build an array of centroid values.

2. then I want to plot the XY graph continuoisly. 

 

Here, I am stuck. 

0 Kudos
Message 3 of 4
(3,055 Views)

When using an X-Y graph you have to keep your own graph history in shift registers.

 

Here is an example I did for someone with a similar question 

XY Graph2 will plot "live data"  XY Graph1 will mirror XY Graph2 after the for loop completes 

cheert.png

I know it's not a perfect example but I modified someone else's code to make it work...

 

Here is another example of an XY graph that plots live data, it is also an "action engine" sub-VI, and you can see shift registers are used to hold the graph history

ggraphCapture.PNG

========================
=== Engineer Ambiguously ===
========================
Message 4 of 4
(3,044 Views)