LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

When x scrollbar reaches end%25252C the next file is automatically selected

I am working on a data analysis package, where a binary file is read and data is sent to a color plot.  I would like to write some code that would allow the user to select a file, and then use the x-scrollbar to move through the data of one file, and when it reaches then end of the file, the next file is displayed.  I am new to labview, and need some help getting started.  All suggestions are appreciated.  

 

 

0 Kudos
Message 1 of 4
(2,425 Views)

@MLH Group TECH wrote:

when it reaches then end of the file, the next file is displayed.

 

 


How does one know which the next file is suppose to be?

 

Why are you wanting to do this?

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

I was just going to read the file directory and strip path and searh 1D array, add 1 too the element, index array and build path, then read that back in too the graph, automatically when scrollbar reached the end of the file currently being read, but I dont know how to link the scrollbar....

 

 

I want to be able to do this so that if multiples files are written over a long period of time, the user could look at all of the data on a single graph...

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

Hi MLH Group TECH,

I would normally suggest using an Event structure triggered off of the control, but unfortunately it would seem that there is no way to trigger an event from the scroll bar. There may be a way to do this with a .NET call to a RichTextBox, since there is a "VScroll" event for that object. But that might be a rather involved undertaking. Perhaps a button to "Go to Next File" would suffice. Hope that helps!

Regards,

Nathan S.
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(2,399 Views)