LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY graph : Plot point by point

Solved!
Go to solution

hi my intention is to plot in a XY graph point by point. Meaning for eg: I want to plot a scatter plot.

 

First I check if the array element satisfies a certain condition (let's say if it lies between 1 to 5) if So I want to plot in red color, else I want to check another condition (let's say lies between 5 to 10) and then plot in blue color and so on.

 

First I check for the condition and link it to a case structure such that each case structure will contain the  corresponding plot color but it doesnt seem to be working.

 

Kindly guide me with this.

 

thanks!!

Message 1 of 15
(7,591 Views)

Hi,

Post the VI so that i can provide you with a better solution. 

Regards
Aks

(Appreciate answers by giving KUDOS)
Hit the stars.............. sky is not the limit.
0 Kudos
Message 2 of 15
(7,587 Views)

Hi Chathuri,

 

If you want to plot a scatter plot, you can do this by editing the properties of the XY graph.  Righ-click on the X-Y Graph object and click on Properties.This will bring up the property viewer. If you then go to the Plots tab, you should see a screen similar to the one shown as an attachement. The fourth column from the left sets the display type and if you click the top diagram, you will display individual data points. I have circled this in the attached diagram. You will also need to set the tick markers to display.  You can do this if you set the third column from the left. 

 

Hope this helps,

Andrew McLennan
Applications Engineer
National Instruments
Message 3 of 15
(7,575 Views)

Attached is an example of what I need to do. At the moment all the points are plotted in one color. I want it to be plotted in different colors depending on the conditions stated in the formula node

 

Thanks!!

Message Edited by Chathuri on 10-23-2008 11:11 PM
Message 4 of 15
(7,545 Views)

Hi Chathuri,

 

I have attached a VI that shows how to display three different points each in different colours.There is a good example of XY graphs which may be of use to you in the NI Example finder; it is called "XY Graph.vi".

 

I hope this help,

Andrew McLennan
Applications Engineer
National Instruments
Message 5 of 15
(7,528 Views)

Hi,

 

Thanks for your example. But unfortunately I cannot open the file as my LABVIEW version is 8.5. Is it possible for you to send me the VI in this version.

 

Thanks!!

 

 

0 Kudos
Message 6 of 15
(7,525 Views)

Here you go, apologies for wrong version.

 

Thanks,

Andrew McLennan
Applications Engineer
National Instruments
0 Kudos
Message 7 of 15
(7,522 Views)
Hi I am sorry but when I run the VI I can only see one dot
0 Kudos
Message 8 of 15
(7,520 Views)

Hi,

 

Sorry its because of the default settings. I've updated the settings on this VI so it should work fine.

 

Thanks,

Andrew McLennan
Applications Engineer
National Instruments
0 Kudos
Message 9 of 15
(7,514 Views)

May I know how I can update an XY graph without deleting the previous plots.

 

 

0 Kudos
Message 10 of 15
(7,493 Views)