NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Announcements
The NI Idea Exchange is a product feedback forum where NI R&D and users work together to submit ideas, collaborate on their development, and vote for the ones they like best. View all of the NI Idea Exchanges to post an idea or add your opinion on an existing one today!
0 Kudos
sjunge

Propertie Node "Value" -> Right Mouse Click Create Indicator shoud create a simple indicator that shows the Value and NOT the string

Status: New
by Member sjunge ‎09-15-2010 01:35 AM - edited ‎09-15-2010 01:37 AM

Hi,

 

i'm using the german version of LV. Maybe some names are "like a decription" because i don't know the english

names corresponding to my indicators.

 

I'm using a combination field of strings and create the content using a propertie node with "StringsAndValues".

Elsewhere i'm using a propertie node with "Value" to know what selection the user made.

 

The normal way to ceate an indicator is right click, create indicator. But in this case the indicator has the same style

of the element "QueryCode" and doesn't show the value -> it shows the String part. The only way to get an indicator that

shows the value is by using the context menu.

 

Please change that! Whenever a propertie node with "Value" is choosen, right click -> create indicator should create an

indicator that shows the value and not the string or whatever.

 

 

23872iA2CACDD7AE92FD17

Comments
by Knight of NI on ‎09-15-2010 03:06 AM

> the indicator has the same style of the element "QueryCode" and doesn't show the value -> it shows the String part.

 

But the "string part" IS the value. The control you have there is a combo box, which is a string. That's the data type it has. Other than the string, it also has some additional strings, but they are NOT part of the value that comes out of the control. They are kept inside the control.

 

You are correct that creating an indicator from the Value property creates a control of the same style and with the same properties as the original control, but whether it should do that or not is debatable.

 

I think I actually agree with you in principle, but not because of the example you gave. Where it would be more relevant is if you have more complex controls. Creating a copy of the existing control by dragging it is a lot easier than creating a "clean" copy manually, so that's an argument for implementing your suggestion.

 

That said, I don't think I care enough to have NI do work on this.

by Member sjunge on ‎09-15-2010 05:49 AM

>But the "string part" IS the value.

 

For me "READ_TYPE" is the string and "R" is the value (also if they are both strings).

Do i understand this wrong?

 

But the properties node "String[]" reads the strings as an array and the array contain "READ_TYPE" etc.

Otherwise the properties node with "StringAndValues[]" makes in this order no sense.

 

 

by Knight of NI on ‎09-15-2010 07:00 AM

> For me "READ_TYPE" is the string and "R" is the value (also if they are both strings).

> Do i understand this wrong?

 

 

No, you understood this correctly. I didn't look closely enough at your original screenshot.

 

The problem is that you're using a combo box, which can have two strings, one for the value and one for display. In this case, "T" is the actual value, but the combo box control displays "READ_TYPE" when you select that value. It's interesting to note that the combo box indicator will display a specific element whether you write the value or the display string of the element into it.

 

I personally never use combo boxes. I use ring controls which have a numeric value, so I never run into this specific issue. Of course you can do this simply by dropping a string indicator and wiring it up to the value property.

Latest LabVIEW Idea Exchange Blog Posts
About LabVIEW Idea Exchange

Have a LabVIEW Idea?

  1. Browse by label or search in the LabVIEW Idea Exchange to see if your idea has previously been submitted. If your idea exists be sure to vote for the idea by giving it kudos to indicate your approval!
  2. If your idea has not been submitted click Post New Idea to submit a product idea to the LabVIEW Idea Exchange. Be sure to submit a separate post for each idea.
  3. Watch as the community gives your idea kudos and adds their input.
  4. As NI R&D considers the idea, they will change the idea status.
  5. Give kudos to other ideas that you would like to see in a future version of LabVIEW!
Idea Statuses
Top Kudoed Authors
User Kudos Count
131
88
76
68
67
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page