07-10-2009 04:10 AM - edited 07-10-2009 04:17 AM
Hello,
I use a Resultslider1.vi that sets the slides colors in a cluster. This vi is called by the testresultsilder1.vi in which the colors are not set (only the values of the sildes).
See the example below.
The testresultsilder1.vi generates random values that are displayed in the cluster of sildes which should be colored red when the values are out of limit and green when it is between the limits. Also the label is set to indicate the test number.
What do i wrong?
Kind regards, Ben Arts
07-10-2009 07:29 AM
You can NOT change the name of an object in a cluster while the program is running because the name of the object is used to index within the cluster.
The CAPTION (after it has been created at development time) can be manipulated.
Ben
07-10-2009 07:40 AM
Sorry, i made a type mistake the label is not changed but the caption.text.
But with the caption.text it does not work. i tried an example form labview see attached file but still have errors.
Please advise...
07-10-2009 07:58 AM
You will ahve to convert over to using a cluster instead of an aray if you want unique captions for each since the caption is an atribute of the cluster and all attributes of all elements in an arry have to be the same.
You could work around this by ading a string to your cluster and use it instead of the caption. This will work since the string text will part of the data and not an attribute.
This thread will show more techniques for using control refs if yu are interested.
Ben
07-10-2009 10:17 AM
Hello,
in my first example i use only a cluster with sildes. I can run the Exampleresultsilder1.vi (put some loop around it) and then it works fine, see attached file.
But when i call it by the tesresultsilder1.vi then i see only the value changes and not the color of the silde.
Ben Arts
07-13-2009 10:05 AM
Hello,
Has someone an idea about this?
Kind regards, Ben arts
07-13-2009 10:41 AM
In order to modify properties of a front panel control with a subvi you have to pass a reference to the front panel control to the sub-vi. In you case you would wire it to the property node of you for loop. (replaceing the property node that is linked to 'Clusteroutp' in the subvi')
07-14-2009 02:13 AM
Hello jack47,
it's not clear to me. What do you mean by reference to the front panel control?
Can you give me an example (pdf)?
Kind regards, Ben Arts
07-14-2009 09:11 AM
07-14-2009 09:14 AM