LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY graph probem. Please help!

 

I am attaching two vi's and an .mdb access file.

The viewhistory.vi fetches data from the .mdb file and plots the graph.(supporting vi -->authentication table read.vi)

 

The problem which i want to correct in the graph plot is that, the points are very closely plotted.

The x axis contains the time (date and time).

 

when the database contains large amounts of data, the points are so closely plotted that x scrollbar need not be used and the points cannot be viewed distinctly.

 

Could anyone please active the x scrollbar and adjust the plot so that the points are relatively far apart so as to see clearly.

i dont mind scrolling far so to view to points plotted.

 

Kindly help.

Thanks in advance.

 

Regards
Grugh Mike

Success is Everything !!
0 Kudos
Message 1 of 4
(2,372 Views)

Unfortunately, LabVIEW graphs do not have scrollbars.  They have equivalent functionality in the graph palette.  You can activate this by right clicking the graph and selecting Visible Items»Graph Palette.  This will give you access to a variety of zoom controls.

 

Alternately, you can implement your own scrollbars using the horizontal or vertical scrollbar controls.  Use the event structure to determine when the scrollbar changes and change the graph ranges using property nodes.  This is a fairly advanced application of LabVIEW, so use the palette if you can.

0 Kudos
Message 2 of 4
(2,355 Views)

can you please tell me how to create our own scroll bar for graphs in labView, actually i have 100 rows in a table and  i m plotting the data in graph.I want the data in the graph to be changed at a time when i scroll the verticle scoll bar of table.

0 Kudos
Message 3 of 4
(2,297 Views)

Add a horizontal scroll bar control to the front panel just below your graph (make it hidden).  

1. When loading data, evaluate whether the scroll bar is needed (more than N data points).  If needed, make the scroll bar visible and set it's max, min, increment based on the number of data points.  

2. Create an event structure tied to the horizontal scroll bar.  When the scroll bar value changes, set the max/min of the graphs x axis range.

 

Note... if you have too many data points close together, you can decimate the data & plot every other (or every 3rd point) without altering the visual appearance of the graph.

0 Kudos
Message 4 of 4
(2,288 Views)