LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

x axis starting at 0??

hi,
im failing to get my graph data to start on the x axis from 0, can anyone tell me what im doing wrong? the data on the x axis starts at close to 80000000 and i need it to start at 0 with increments selected by user (delta t input in mS)

thanks

 

0 Kudos
Message 1 of 5
(4,125 Views)

Hi,

I have solved your problems and added the solution with this reply.

 

You are getting larger values because you haven't fed any x-axis values to the chart. And by default, it gives you the maximum iterations your CPU can make. The iteration duration i.e. (delta ms) can be controlled using wait for function rather than the time function you have used.

 

Another thing you have to clear the history and reset the x-axis start value to 0 prior to loop execution to start from 0.

 

Please give Kudos if you like my solution.

 

Kind Regards,

Ram Gurung

Certified LabVIEW Associate Developer

LabVIEW_Cert_Asso_Developer.jpg

HTML tutorial  HTML tutorial
162+ CLDs & 10 CLAs Trained
LabVIEW Training resources
Message 2 of 5
(4,110 Views)

First, you have a chart, not a graph.  In LabVIEW charts and graphs may look very similar but function differently.  Read the help files for more information about the differences.

 

The 345... number on the x-axis is probably the current time in seconds from January 1, 1904.  That is the date which is considered the starting time for timestamps in LV.  Since both ends of the axis have the same label, the chart apprently is showing less than 1 second of data.

 

If the user can change the delta t while the program is running, then a chart will not show you the times of each point.  An X-Y Graph and a saparate array of times would be required.

 

Lynn

0 Kudos
Message 3 of 5
(4,107 Views)

hi thanks for the soultion. i cant open that version as i only have 8.5 could you upload a older version please. thanks in advance

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

thanks again, kudos given. ive found another solution to the problem but appreciate the help though cheers

0 Kudos
Message 5 of 5
(4,073 Views)