LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Text Box

Hi
 
where do i get text boxes as shown in tha attached file.
 
thanks
 
 
0 Kudos
Message 1 of 7
(4,100 Views)
To get the name of the configured device.
0 Kudos
Message 2 of 7
(4,089 Views)

The left "text box" is called a label and can be found on the Decorations palette.

The right "text box" is a string control and can be found on the String & Path palette.  I don't know what version of LV you are using but in 8.2 the identical one to this is under the classic controls-->String&Path palette.

Let me know if you find these all right and I would suggest looking through all the palettes to get acquainted with all the different factory controls you can use to make good-looking front panels.  Also, you can modify controls and save them as custom controls if you want to be able to easily reuse them.

Caz

0 Kudos
Message 3 of 7
(4,087 Views)


@sujeep wrote:
To get the name of the configured device.


I didn't see this post before I answered.  Did I answer your question or are you trying to figure out what to use for input to some instrument driver function?  If the latter, maybe you could post your code or at least give some more background to what you are trying to do.

 

Caz

0 Kudos
Message 4 of 7
(4,084 Views)
Hi,
 
Thanks for ur quick reply Sir.
 
But I need those value to be constant . Like I hv attached the vi along with this.
 
Device name and FP-RTD-122@1  text box is correct. these values are stored even if I close and reopen the vi. But by using Classic text box it is nt stored and I am nt able to retrive the values from the configuration file i.e MAX.
 
Thanks
0 Kudos
Message 5 of 7
(4,083 Views)

Okay, I think maybe I understand.  First off, lets stop calling these things "text boxes" but rather use LabVIEW terminology.  The stuff on the left are labels for the string controls (see attached pic).  If you right click on a string control and select Visible Items, you can select to show labels and/or captions.  If you add a new string control and click show label, it may have a default transparent background.  You can use the paintbrush tool to choose the color.  Also, If you want to duplicate whats there already, simply copy and paste an existing one.

Now as for the closing and reopening a vi and not having the same values for the controls, this can be fixed by setting the default values.  You can either right click each control and select data operations--> set current value to default or else set everything to the values you want and under the edit pull down menu choose make current values default and then save your vi.  Next time you open, these will be the values that load in.

A good rule to remember, if in doubt right click.

Hope this helps,

Caz

0 Kudos
Message 6 of 7
(4,072 Views)
Thanks a lot Sir.
0 Kudos
Message 7 of 7
(4,068 Views)