Select the part of the code which one you like to create as a SubVI & go to Edit menu then select the option “Create SubVI”(See Picture 1) .Now the selected part of the code is automatically converted into a SubVI(See Picture 2).
Monday, March 17, 2008
Tips for creating Sub VI
Tuesday, March 11, 2008
Tips for insert the function in-between wiring
Sunday, March 9, 2008
Swapping the wire terminals (two input function)
If you have function of two inputs like Add, Multiply…etc , you can easily swap the input wire terminals without deleting the wires. For example you have connected x1,x2 as input terminals in Subtract function, the swapping of x2 into x1 and x1 into x2 is done by the following method,
Keep auto tool selection enable – move the mouse over subtract function input terminals and press control key you got a symbol like -8 just click it now you got swapped input terminals.
Thursday, March 6, 2008
Randomly mixing the array elements
Sunday, February 17, 2008
Limit string length of the string control
String control connected with String Subset(with length) and the substring connected with the local variable of that string control.String Subset length 10 constant denotes the Maximum string length of that control.Select the update value while typing option of the string control by Right clicking on control for run time string length control. If any other way please let me know.
Friday, February 8, 2008
Quickly entering items into Ring & Enum control
The conventional method (Right click-> Edit items) for entering the items into Ring control is uses only when you need the sequential value changes for the items. If you don’t need the sequential value changes for the items the easiest & quickest method for entering items into Ring & Enum control is,
Thursday, February 7, 2008
Tips for Case Structure
Radix selection is also accomplished for numeric control connected case selector by Right click->Radix-> Hex or something .(See Picture 2)
Tuesday, February 5, 2008
Working on Compound Arithmetic tool in LabVIEW
The invert terminal denotes the opposite calculation(In addition operation invert works as subtraction & Multiplication operation invert works as division ).To get invert input terminal- Right Click on the terminal and choose invert.Boolean operations is also done in that tool by changing its mode(By Right Click on the tool->Change mode->OR).
Monday, January 28, 2008
Find number of times occurring element in an array
This method is work on both numeric & string array.(for more methods see NI Discussion Forums )
Wednesday, January 23, 2008
Converting string array to concatenated string
Wire the string array to Concatenate Strings single terminal and create the indicator to see the concatenated String (See Picture 1 & 2).
The numeric array elements concatenation is also possible by converting the numeric array to string array and Concatenate Strings then convert back to numeric indicator( See picture 3 & 4).
Tuesday, January 22, 2008
Checking the File existence in particular path
To get this tool,
Functions Palette->File I/O-> Advanced File functions-> File/Directory Info.
Wire the error out of this tool to case structure . The No Error case denotes the File is exists,if error is getting means the file does not exists (See picture 1)
Getting Application Path for an EXE
Functions palette->Application Control->Property Node, The properties Application kind & Application directory are selected by
click on the property node ->Application->Kind & for next property
click on the property node ->Application->Directory Path (See Picture 1)
Connect the Application kind to case structure terminal to get the Development system,Run time System and more kinds..
Use the Directory path wire for getting current path for an EXE (See Picture 2)