Sunday, February 17, 2008

Limit string length of the string control

In some string control using user interface applications need the limited string length option for restrict the user from entering the unnecessary strings .My method for limiting the string length is (See picture 1),











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,

Select Edit Text from the tools palette and click inside the control -type the item & press shift + Enter button then again enter item .

Thursday, February 7, 2008

Tips for Case Structure

The Case selector terminal is accepts string,enum,boolean,integer types.If you like Case Structure connected with string should be case insensitive choose Case Insensitive Match option by Right click.(See Picture 1)

















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

For arithmetic calculation such as addition,subtraction etc we are using add,multiply & more tools from the Numeric palette.If many inputs are using in the calculation, the block diagram should be little bit extended by more Numeric tools & wiring. For a clean block diagram use Compound Arithmetic tool from numeric palette.By using this tool the addition & subtraction ,Multiplication & division calculations are easily accomplished without using the separate tools like Add, Subtract, Multiply, Divide.For example, Result=I1 + I2 –I3 calculation is done as per below (See Picture 1 for both two methods).















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).