LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

plot with non linear x-axis value in chart

Dear friends,      

 

 I want to plot the acquiring data in a chart in which the x-axis value must be the time at the data acquired.no other time will be in the x-axis other than the acquired time.

 

for example if i acquired an data value 10 at 5 pm,11 at 9pm and 8 at 10 pm then x scale value must be 5,9,10.i.e it should not be  5,6,7,8,9,10.please reply me soon.

kavi
0 Kudos
Message 1 of 13
(4,133 Views)
You can't use a chart for this. Instead, use an XY Graph. There is a shipping example called XY Chart that shows how to use an XY Grpah like a chart, use the express XY Graph, or use a couple shift registers and the normal XY Graph.
0 Kudos
Message 2 of 13
(4,128 Views)

attach that example to me

 

kavi
0 Kudos
Message 3 of 13
(4,108 Views)

In your LabVIEW window click "help" and select "Find Examples". A seperate window will get opened. There select the search tab and type "XY graph" and do a search. You will find the one Dennis mentioned. Attached is a picture to do that. You can find lot of shipping examples.

 

Message Edited by mathan on 12-16-2008 12:24 AM
0 Kudos
Message 4 of 13
(4,099 Views)

hai

 

i attached my program here .There will be an runchart and expected run chart.go through the program and reply me . 

kavi
0 Kudos
Message 5 of 13
(4,084 Views)

hai

 

i attached my program here .There will be an runchart and expected run chart.go through the program and reply me . 

kavi
0 Kudos
Message 6 of 13
(4,083 Views)

I'm afraid I don't have v8.6 so I can't look at your code. You can plot to a chart with variable X axis values if you convert your data to a waveform. Take a look at the image.

 

I hope this helps.

 

Ian

0 Kudos
Message 7 of 13
(4,077 Views)

Adding to Ian's post where he shared this image

 

 

 

You could take a look at this thread where I posted images code as illustrated below.

 

 

Ben

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 8 of 13
(4,071 Views)

Hai i attached the same program in 8.2 version.I clearly explain you wat i need.im goind to measure the width of material when ever measure button is clicked.In the meanwhile i have to plot the run chart for this measurement.I hope u know wat is run chart.my requirement is the x and y axis of the of the chart is time and width correspondingly.The condition is the x-axis time will be the time at which the data acquired.for example if  the data is acquired at 11am,1pm,7pm.the first value in the xaxis will be 11,the second 1,the third one 7 pm..

 

It should not be 11,12,1,2,3,4,5,7.Please help me to solve.The another problem is in xy chart i able to plot the data with respect to time provided the value  in thex-axis as 11,12,1,2,...5,7.i cant achieve as 11,1,7 in xy chart also.But here in run chart i could do that also.reply me friends

 

In the attached program i name a chart as expected run chart that is wat i want to be .In that expected run chart i manually write the xaxis time to show u how i want it be.u go through u will understant.u run that and try to help me

kavi
0 Kudos
Message 9 of 13
(4,041 Views)

 

 some mistake in my previous message please read this and reply me.sorry

Hai i attached the same program in 8.2 version.I clearly explain you wat i need.im goind to measure the width of material when ever measure button is clicked.In the meanwhile i have to plot the run chart for this measurement.I hope u know wat is run chart.my requirement is the x and y axis of the of the chart is time and width correspondingly.The condition is the x-axis time will be the time at which the data acquired.for example if  the data is acquired at 11am,1pm,7pm.the first value in the xaxis will be 11,the second 1,the third one 7 pm..

 

It should not be 11,12,1,2,3,4,5,7.Please help me to solve.The another problem is in xy chart i able to plot the data with respect to time provided the value  in thex-axis as 11,12,1,2,...5,7.i cant achieve as 11,1,7 in xy chart also.But here in run chart i could do that also.reply me friends

 

In the attached program i name a chart as expected run chart that is wat i want to be .In that expected run chart i manually write the xaxis time to show u how i want it be.u go through u will understant.u run that and try to help me

kavi
0 Kudos
Message 10 of 13
(4,028 Views)