Wednesday, May 28, 2008

Tips for timestamp calculations

I was studied the article “LabVIEW tip: easy relative timestamp calculations” from this link.This method is very simple for calculation with Timestamp control.The addition of day,year,hour,min,sec is also done by this method .DBL data type constant with unit label is used for these calculations.See the attached picture for adding one day with time stamp control.

Tuesday, May 27, 2008

Creating Text Labels instead of numeric scale in controls (Gauge,Slide,Dial etc)

Controls like Gauge,Slide,Dial are DBL data type(by default) & having the numeric limits with changeable scale .If you want Text Label for Dial, Gauge… controls follow this method.
Right click on the control->select Text Labels option & Edit the Text Display which is contains the min & max labels as default. The attached picture shows the Dial control with Level 1 to Level 5 text labels.

Friday, May 23, 2008

Creating multiple Controls/Indicators in Front Panel without using any additional variables

In Front Panel multiple Controls/Indicators with same behaviour without using any additional variables is attained by Advanced ->customize option of that control (or) indicator.First select Digital Display option of the control from Right click the control ->Visible Items-> Digital Display then go to customization. Replace the Digital Display by any other control like Gauge, Meter...etc. Repeat the customization to replace the digital display of the new custom control with another control. (See Picture)

Wednesday, May 21, 2008

Disable the Numeric control entry field

In run time restrict the user from typing something into the entry field of the numeric control (or) String control is easily done by the following trick.
Select a "flat box" from decorations->Flat box, resize/move it to exactly cover the Numeric control user entry field and paint it transparent . Group it the flat box & Numeric control and also select “Skip this control when tabbing" option in the key navigation dialog of the control to avoid the tabbing access of the control.