Valiant Technologies, Inc. LabVIEW VIs and Developers Support National Instruments Home Page

Here are some useful VIs that we have developed. All are written for LabVIEW 4.0.1 using Windows 95. If you use them then all we ask is that you give us credit for our contribution to your efforts (see about.zip). After you see what we give away, just think about the type of consulting services we must provide!

This page is always being updated with new useful VIs...

Least Squares Fit of Sines Incremental CRC32 Calculation Windows INI File Processing VI
Display DIB as an Intensity Chart Sample "About..." VI Binary Search Example
Windows Registry Processing VI Parallel Port I/O Sample Code Radio Button Implementation VIs
Windows API CIN based VIs Fill Array with Directory Tree  

Least Squares Fit of Sines (sinefit.zip)

This VI will perform a least squares fit of sines on an input data set of the form D + Acos(wt) + Bsin(wt) given the data set, the filter frequency (w/2p) and the sampling frequency (1/Dt). The VI returns the coefficients D, A, and B and optionally filters the signal.

Incremental CRC32 Calculation (icrc32.zip )

This VI will do an incremental CRC32 calculation on an input string. The VI should be "Reset" prior to each "new" use. By calling this VI multiple times with different strings, a full CRC32 can be accumulated over time (very useful for real-time data).

Windows INI File Processing VI (inifiles.zip )

This VI calls the GetProfileString, GetPrivateProfileString, WriteProfileString, and the WritePrivateProfileString Windows functions in order to give LabVIEW access to INI files. If the profile filename is left unwired, then WIN.INI is accessed.

Parallel Port I/O Sample Code (pport.zip )

This VI shows how to set up the parallel port for data input and output.

Display DIB as an Intensity Chart (bmp2chrt.zip)

This VI will load in a palletized bitmap and display it as a LabVIEW intensity chart. It will NOT display HiColor or True Color images.

Sample "About..." VI (about.zip )

This VI provides a simple template for the "About this Application" dialog box. It contains the text required by National Instruments as well as some basic formatting.

Binary Search Example (binsearch.zip)

This VI will do a binary search on a sorted Input Array in order to find the specified Target value. The return value is an Index into the Input Array where that array value is less than or equal to the Target value.

Radiobutton Implementation VIs (atmost1.zip)

These VIs shows how to create At-Most-One and At-Least-One radio button style control elements on a panel.

Windows Registry Processing VI (registry.zip)

This VI gives LabVIEW applications direct read/write access to the system Registry. Be careful with this one, damage to the system registry can make your system inoperable!

Windows API CIN Interface VIs (apicins.zip)

These VIs gives LabVIEW applications direct access to the some of the Windows API functions. The list currently includes: GetActiveWindow.vi:, GetWindowHandle.vi, IsWindow.vi, SetForegroundWindow.vi, ShowWindow.vi, and GetClassName.vi.

Fill an Array with a Directory Tree (fulldir.zip)

These VIs are used to populate a Path Array with the fully qualified file names in a directory tree.  Since all subdirectories are processed, this code is a good example of how to use iteration for a problem that would normally be addressed using recursion.


Home | Software | LabVIEW | Contact Us

Copyright © 1996-1998, Valiant Technologies, Inc. , All Rights Reserved

03/08/00 ern