cancelar
Mostrando resultados para 
Pesquisar então 
Você quer dizer: 

XY graph : Plot point by point

Resolvido!
Ir para a solução

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!!

Mensagem 1 de 15
8.416Exibições

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
Mensagem 2 de 15
8.412Exibições

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
Mensagem 3 de 15
8.400Exibições

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
Mensagem 4 de 15
8.370Exibições

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
Mensagem 5 de 15
8.353Exibições

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
Mensagem 6 de 15
8.350Exibições

Here you go, apologies for wrong version.

 

Thanks,

Andrew McLennan
Applications Engineer
National Instruments
0 Kudos
Mensagem 7 de 15
8.347Exibições
Hi I am sorry but when I run the VI I can only see one dot
0 Kudos
Mensagem 8 de 15
8.345Exibições

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
Mensagem 9 de 15
8.339Exibições

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

 

 

0 Kudos
Mensagem 10 de 15
8.318Exibições