Original Code Consulting
LabVIEW File and Directory Utility Programs
| (LabVIEW 8.20) The purpose
of this VI is to be able to display long file paths
optimally in a short string indicator. As shown
in the image on the right, a path is used as input,
and the output is a string which is sized to fit in
the desired indicator. The Font, Font Size, and
Font Style are taken into account when fitting the
path into the indicator, as is the size of the
indicator itself. The example VI shown to the
right is included in the Truncate
Long Path (42KB) download, along with the sub-vi
that does the work.
Note that although the subVI is technically platform independent, the logic used to truncate the file path assumes Windows path syntax. Also, this VI is intended to work with single line string indicators.
A version of this VI that has been converted to an XControl is available on the LAVA website.
7.1) (134 KB) The Log File Component
is a small set of VI's that implement a simple example of a
LabVIEW componet using an architecture that I have developed
and used on numerous projects. (See Conway and Watts, A Software Engineering
Approach to LabVIEW for more information on LCOD, or
LabVIEW Component Oriented Design.) In addition to
providing an example of this architecture (which is the
evolution of the Drivers discussed in my paper on the Mass
Spectrometer program), this component can be used to
easily implement an error and event logging mechanism.
Additional information on how to use the component is included
with the download or can be view here.