06-28-2007 11:31 PM
06-29-2007 12:02 AM
06-29-2007 12:10 AM
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
06-29-2007 12:15 AM
@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
06-29-2007 12:29 AM
06-29-2007 12:54 AM
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
06-29-2007 01:05 AM