LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Graph_Scrollbar.vi needed

You know,Waveform charts have built in scrollbars, but waveform graphs do not.A vi generates 1000 random numbers and plots them on both a chart and a graph. The chart scrollbar is visible, and we can scroll through the points, displaying 100 at a time.But how can we obtain the same effect as a scrollbar on a graph?Please search the entire site for the article titled "Adding a Scrollbar to a Waveform Graph".There gives the link for downloading the example vi but it does not work.Could anyone help me?
0 Kudos
Message 1 of 5
(3,115 Views)
I found your missing VI (attached).

By the way, LabVIEW 7.0 graphs have a built-in X scrollbar.
0 Kudos
Message 2 of 5
(3,113 Views)
Thank you,Bob P!
0 Kudos
Message 3 of 5
(3,113 Views)

Bob,

Hi, your scroll bar example is great. I would like to use it to open a file and display the file but I can't get it to work. The file I want to display is a single column spreadsheet. Have you done anything like that before? Could you give me some suggestions? I want to be able to display the file and scroll through the data.

 

Thanks,

joe

0 Kudos
Message 4 of 5
(2,990 Views)

First, the original post is a couple years old so it would have been to start a new thread instead of expecting the original poster to respond. Second, if you have a newer version of LabVIEW, you don't need the example anyway since scrollbars are built into graphs now.

If your data is in a file with some sort of separator between columns (i.e. comma or tab), you just have to use the Read From Spreadsheet File to get it and wire the all rows output to your graph. If the x axis is not set for auto-scale then you can then scroll through the data. On the front panel, right click on the graph and select Visible Items>X Scrollbar. If can't get this to work, provide some details on the file. Attaching the file and the VI you've written will go a long way in helping you solve the problem.

0 Kudos
Message 5 of 5
(2,982 Views)