f



How can I set the caption text of picture controls inside an array or how can I choose which array element is assigned using the array elements caption text property.

I have 8 picture controls inside an array and I would like to set the caption text of these controls.
I have used the property node of the array and used the array elements property caption text to set the text.
 
The problem is however that I set the same text to all the picture controls inside the array.
My question is how to set caption text of specific elements (Picture control) that I have so far only been able to access using the array elements caption text property.
 
 
 
0
x9561 (148440)
11/16/2006 9:10:09 AM
comp.lang.labview 35213 articles. 1 followers. vasusachin24 (1) is leader. Post Follow

2 Replies
1453 Views

Similar Articles

[PageSpeed] 43

Some more help
 
1 You could use the caption of the array and place it in front of the selected picture and update that using property nodes.
2 Like Norbett said if you use a cluster of pictures then their caption can be updated individually.
 
Here is a an example that demonstrates the above
 
David


Modify the Captions Of Pictures.vi:
http://forums.ni.com/attachments/ni/170/215729/1/Modify the Captions Of Pictures.vi
0
x9561 (148440)
11/16/2006 11:10:10 AM
Thanks for your advice,
it would have been nice to be able to access the captions of the picture controls individually inside the array, but it's good to know that it is not possible.
 
I will go on with a solution using clusters instead.
 
Thanks again.
 
 
:smileyhappy:
0
x9561 (148440)
11/16/2006 11:10:12 AM
Reply:

Similar Artilces:

Array of cluster to array of element - or
Hi all, I have a large cluster (lets call it C_data) containing measured data e.g. 10 Temperatures, Pressure, (Temp_1, ...)..... All these data are measured once per second. I now collect all data measured over a certain time in an array of the aforementioned cluster, that is an array of C_data. In order to display time series of data in graphs I need to extract arrays of elements from this array of C_data. In a text based programming language this could look like the following: Struct C_data {Temp_1, Temp_2, P_1.....} ar_C_data is an array of C_data now I want to do something like: array_of_Temp_1 = ar_C_data[*].Temp_1 In some programming languages this works but I cannot unbundle_by_name the array of Temp_1 from ar_data in Labview. Since my cluster is large and may change in structure (for this reason I use a typedef) a generic solution would be the best. I know that I could: loop over all elements of ar_C_data, unbundle by name, index elements into arrays, and use these but this seems very inefficient if it is done every second on a large cluster (30 elements) with several thousand array elements.... Olaf ...

show array of array of array of array...
I'm trying to print an array of (datas and array of (datas and array of (datas and array..... Here is the code: ...

Add an array X with an array Y element by element without using for/end
Hello I want add an array X with an array Y but element by element without using for/end. For example X = [1 2 3]; Y = [4 5 6]; Z=X.+Y Z = [5 6 7; 6 7 8; 7 8 9] i know that X.+Y doesn't work. I want to ask if there is a command that can help me without using for. thank you On 7/9/2015 6:32 PM, Jorge Peñaloza Giraldo wrote: > Hello > > I want add an array X with an array Y but element by element without using for/end. > > For example > > X = [1 2 3]; > Y = [4 5 6]; > > Z=X.+Y > Z = [5 6 7; > ...

How can you quickly find the number of elements stored in a a) static array b) dynamic array ?
Hi all, got this interview question please respond. How can you quickly find the number of elements stored in a a) static array b) dynamic array ? Rgrds MA C C++ C++ wrote: > Hi all, got this interview question please respond. > > How can you quickly find the number of elements stored in a a) static > array b) dynamic array ? You do not mention, how the static array and the dynamic array are given to you. Therefore, I will make some assumptions. For an array of fixed size, you can use templates: template < typename T, unsigned long N > unsigned long length ( T c...

Assigning elements of an array to a field in a structure array
Going between comma-separated lists, cells, and arrays is unnecessarily frustrating, and is one of my only major complaints about MATLAB. I know about deal, arrayfun, cellfun, {:}, etc, but I haven't found an easy (i.e. one-line) solution to the following seemingly trivial problem: Ok, so: --- %what if I have a vector of integers: num_vec = [1 7 3 5 9]; %and I structure array with same number of fields: [mystruct(1:5).a] = deal('a','b','c','d','e'); %I want to assign num_vec as the the 'b' field of mystruct. %The following does not wor...

deleting elements of one array by comparing it to the elements of another array
I m a newbie to LabVIEW and I have a very basic question. &nbsp; I have two arrays. The first array contains a certain set of elements &nbsp; For e.g.&nbsp; 1 2 3 4 5 6 &nbsp; The second array has another set of elements &nbsp; For eg. 2 5 6 &nbsp; Now I want to delete the elements 2 5 6 from the first array and plot the first array with the deleted elements on a waveform graph. &nbsp; Can anybody help me out? &nbsp; Thanks and regards. Hello,you could do something like this:<img src="http://forums.ni.com/attachments/ni/170/231758/1/Example_BD.png"> Greets, DaveMessage Edited by daveTW on 02-23-2007 05:07 PM Example_BD.png: http://forums.ni.com/attachments/ni/170/231758/1/Example_BD.png delete array elements.vi: http://forums.ni.com/attachments/ni/170/231758/2/delete array elements.vi Hi Dave, &nbsp; Thank you for the quick reply. That is exactly what I tried to do. But Im doing something else wrong. My final waveform, still appears with the undeleted elements. I have attached the vi for a better understanding. Thanks and regards, Prakruthi deglutition_removal_ver1.1.vi: http://forums.ni.com/attachments/ni/170/231773/1/deglutition_removal_ver1.1.vi ...

How to process individual element of array with individual element of another array
Hi to all<br>Can anyone tellme How to control an individual element of an array with another array of individual element.<br>i Attached Design.vi with this message..<br>In that if i select ch1 of channelsarray then v1 of voltagesarray should enabled accordingly..<br>similarly ch2->v2,ch3->v3,ch4->v4......<br>how to do this<br>which is the better way & tellme which control is best either cluster or array<br>my application is:<br>Data Acquisition System thru parallel port<br>this system is to acquire 64kbytes of data per channel...

Re: show array of array of array of array...
sorry..the code: function printtree($array, $level){ while(list($k,$v) = each($array)) if(is_array($k)){ print("$k -><br>"); printtree($k,$level++); } else { for($i=0;$i<$level;$i++) print("&nbsp;"); print("$k : $v<br>"); } } but it does only print the first level and get out !!! I can't figure what's wrong.... Please help !!!! BoB Bob Bedford wrote: > sorry..the code: > > function printtree($array, $level){ > while(list($k,$v) = each($array)) > if(is_array($k)){ > print("$k -><br>"); > printtree($k,$level++); > } > else > { > for($i=0;$i<$level;$i++) > print("&nbsp;"); > print("$k : $v<br>"); > } > } > > but it does only print the first level and get out !!! > > I can't figure what's wrong.... I won't look through your code, but... Have you ever heard of foreach (http://www.php.net/manual/en/control-structures.foreach.php) and print_r (http://www.php.net/manual/en/function.print-r.php)? Berislav -- If the Internet is a Marx Brothers movie, and Web, e-mail, and IRC are Groucho, Chico, and Harpo, then Usenet is Zeppo. Bob Bedford wrote: > function printtree($array, $level){ > while(list($k,$v) = each($array)) > if(is_array($k)){ $k is *never* an array. I didn't test it ... but for it to work you should test $v inst...

How can I coerce all array elements with a property node?
I am using LabVIEW 7.1, and I want to change the Range-maximum value of the numeric elements in an array using property nodes. It is working fine but the problem is that current elements in the array won't be updated (coerced if they were above the new limit) unless I enter a new value in the cell. If you look at the attached sub-Vi, you'll see that all elements currently have a value of 9, and the limit is set to 5. When the VI is run, only the bottom element will be updated, and the other elements will stay the same. If I enter a new value (thus generating an event), then this element will be coerced. &nbsp; How can I force all the current elements of the array to be updated to the new maximum value? &nbsp; Thanks Array_elements.vi: http://forums.ni.com/attachments/ni/170/234320/1/Array_elements.vi ...

How put i text in an array so i can use this later?
Hi I'm looking in Labview for a field where I can save (and later load)&nbsp; things in like: text, numbers, booleans.&nbsp; Ik have several things tried but it doesn't work. Do I have to use an array? Can someone mabe post an example so I can see how this work? Regeards, Typically, you want to keep data types consistent. Text in a text control or indicator, boolean in a boolean, and numbers in a numeric. If you want the same container for everything, you need to cast your data to a string or variant and convert it back to the right data type later. &nbsp; Of course you...

Can I compare array with array?
Hi, If I have two array, like @a = (1,2,3); @b = (1,2,4); Can I use if(@a==@b) directly? Thanks! Davy Davy wrote: > If I have two array, like @a = (1,2,3); @b = (1,2,4); > Can I use if(@a==@b) directly? What happened when you tried it? You may be interested in the Array::Compare module on CPAN: http://search.cpan.org/~davecross/Array-Compare-1.13/lib/Array/Compare.pm Paul Lalli Davy wrote: > If I have two array, like @a = (1,2,3); @b = (1,2,4); > Can I use if(@a==@b) directly? You can use that check only to find out whether the number of elements in both arrays are the same, and _not_ whether their values match. But it's better practice to do if ( $#a == $#b ) { ... } (and better practice to not use $a and $b as variable names, because they could have a special meaning) Hope this helps, -- Bart "Bart Van der Donck" <bart@nijlen.com> wrote in news:1153061300.577609.326490@m79g2000cwm.googlegroups.com: > Davy wrote: > >> If I have two array, like @a = (1,2,3); @b = (1,2,4); >> Can I use if(@a==@b) directly? > > You can use that check only to find out whether the number of elements > in both arrays are the same, and _not_ whether their values match. > > But it's better practice to do > > if ( $#a == $#b ) { ... } Why? > (and better practice to not use $a and $b as variable names, But he is not using those names. Sinan -- A. Sinan Unur <1usa@llenroc.ude.inval...

convert array to array-of-arrays?
Rubies: Given [1, 2, 3, 4], what's the most Rubiesque way to get [[1, 2], [3, 4]]? I had figured a variation on Array#transpose would be available, but I can't find one! -- Phlip On Feb 4, 10:45 am, Phlip <phlip2...@gmail.com> wrote: > Rubies: > > Given [1, 2, 3, 4], what's the most Rubiesque way to get [[1, 2], [3, 4]]? > > I had figured a variation on Array#transpose would be available, but I can't > find one! > > -- > Phlip have a look at enum.partition (http://ruby-doc.org/core/classes/ Enumerable.html#M003161) cheers Chris Hu...

How to separate array from array of arrays
Hello I don't know if what I wrote in subject makes any sense. I have an array in which there are two entries, which are again arrays (one is numbers and one is text). Like I have entry called NEWDATA1 in workspace and in NEWDATA1 , there are entries called 'data' and 'textdata'. I want to separate 'data' (which is a column of numbers) from NEWDATA1. I actually imported a file (concfromcmg1.txt) which looks like Global Mole Fraction(SOL) 2000-01-01 1,1,1’ *SRF-FORMAT 0 Global Mole Fraction(SOL) 2000-01-03 1,1,1’ *SRF-FORMAT 0.705627 ...

Replace zero element in array with nonzero element from another part of the same array
I have a large array (42 columns and 30000+ rows). Some of the elements are zero which is undesirable. I want to replace the zero elements with nonzero elements from the same column but one or two rows above. I have found the coordinates for all the zero elements using [i,j]=ind2sub(size(y_blade), find(y_blade==0)); But I don't know how to replace the zero elements in each of those coordinate with an element that has the same j coordinate but an i coordinate a couple above it. I was thinking something like y_blade(i,j)=[y_blade(i-2,:), y_blade(:,j)]; or y_blade(y_blade==0...

How can I know if a given element in a control array is loaded?
I need to know if foo(bar) is loaded, who can I do this? Thanks, ;) > I need to know if foo(bar) is loaded, who can I do this? Try this code... > I need to know if foo(bar) is loaded, who can I do this? Try this code... If VarType(CN(Index)) = vbObject Then ' ComboBox with that Index value DOES NOT exist Else ' ComboBox with that Index value DOES exist End If where you would substitute the control array name itself in place of the CN that I used. Rick Didn't work, :P Rick Rothstein [MVP - Visual Basic] wrote: > > I need to know if foo(bar) is loaded, who can I do this? > > Try this code... > > If VarType(CN(Index)) = vbObject Then > ' ComboBox with that Index value DOES NOT exist > Else > ' ComboBox with that Index value DOES exist > End If > > where you would substitute the control array name itself in place > of the CN that I used. > > Rick > > > I need to know if foo(bar) is loaded, who can I do this? > > > > Try this code... > > > > If VarType(CN(Index)) = vbObject Then > > ' ComboBox with that Index value DOES NOT exist > > Else > > ' ComboBox with that Index value DOES exist > > End If > > > > where you would substitute the control array name itself in place > > of the CN that I used. > > Didn't work, :P More details please... exactly what does "didn't work&...

Array in Array
Hi guys, I have a question dealing with arrays. Here it go: Suppose A is a 3 by 1 array, I want to assign A (1,1) a 5 by 1 array B, can I do this? How? Thanks in advance! "George " <guanjihou@gmail.com> wrote in message <hutpgd$km$1@fred.mathworks.com>... > Hi guys, > > I have a question dealing with arrays. Here it go: > > Suppose A is a 3 by 1 array, I want to assign A (1,1) a 5 by 1 array B, can I do this? How? > > Thanks in advance! Hi George, make A a cell array A = cell(3,1); B = randn(5,1); A{1} = B; Wayne % Us...

array of...array....
I've this structure in a XML file: Type Model Detail Datas Datas Datas Datas /Detail Detail Datas Datas Datas /Detail /Model /Type I've parsed all the stuff, by putting everything in an array. Now, I've a problem as I must use datas in "Detail" tag every time they are processed, but I must first process datas in Model, so I have to wait until Model tag is closed. For now I put everything in an array called $datas (where I store the couple key/value). How can I do to create, at a certain point, a new array for storing the Detail array (in order to have an array for every Detail that may occur, as this isn't a fixed number of Details ?) Thanks for helping. Just create a new array for an array data : like this $data["Model1"]["Detail1"] = array("Datas1", "Datas2", "Datas3"); Savut "Bob Bedford" <bedford1@YouKnowWhatToDoHerehotmail.com> wrote in message news:40e05cbf$0$26629$5402220f@news.sunrise.ch... > I've this structure in a XML file: > Type > Model > Detail > Datas > Datas > Datas > Datas > /Detail > Detail > Datas > Datas > Datas > /Detail > /Model > /Type > > I've parsed all...

Array of arrays
Hello, How do I define an array of arrays ? Suppose T is an array of 3 elements. And I want T[0] = intarr(2,5,4), T[1] = intarr(6,5,4) and T[2] = intarr(7,8,4). How do I declare T ? Francois. Fritz writes: > How do I define an array of arrays ? > > Suppose T is an array of 3 elements. > And I want T[0] = intarr(2,5,4), T[1] = intarr(6,5,4) and T[2] = > intarr(7,8,4). > > How do I declare T ? As a pointer array. :-) t = PtrArr(3) t[0] = Ptr_New(intarr(2,5,4)) t[1] = Ptr_New(intarr(6,5,4)) t[3] = Ptr_New(intarr(7,8,4)) (*t[1])[0,*,2] = Indgen(5)+3 Cheers, David -- David Fanning, Ph.D. Fanning Software Consulting, Inc. Coyote's Guide to IDL Programming: http://www.dfanning.com/ Thanks. What happens if I save the array T ? > save, filename='Tarray.sav', T Does the content of T is saved ? I mean do the three arrays inside T are saved ? Does the restore command > restore, 'Tarray.sav' brings back the initial information ? Francois. "David Fanning" <davidf@dfanning.com> wrote in message news:MPG.1e668c7ae40db807989b9f@news.frii.com... > Fritz writes: > >> How do I define an array of arrays ? >> >> Suppose T is an array of 3 elements. >> And I want T[0] = intarr(2,5,4), T[1] = intarr(6,5,4) and T[2] = >> intarr(7,8,4). >> >> How do I declare T ? > > As a pointer array. :-) > > t = PtrArr(3) > t[0] = Ptr_New(inta...

Array of Arrays
Hi, I am a C programmer trying to figure out a simple way of defining a 2D array. In C i would simply do: int dateArray[5][3] = {5,21,2004, 7,23,1979, 5, 6,1949, 6, 2,1977, 2,15,1975}; In java however I am not sure how to do this. From what I have read so far I know of one way. int[][] dateArray = new int[5][3]; dateArray[0][0] = 5; dateArray[0][1] = 21; dateArray[0][2] = 2004; .... Is there a quicker way to do this, similar to C. Thanx Joe "Joe Ray" <raymis@hotmail.com> wrote in message news:46039644.04052107...

array of array
I've to save in an array of array some values. Problem: I don't know the size of the array before filling it. I'd like something like $bigarray = array(): then runnig the code I must create dinamically (I don't know how many) few arrays in the bigarray; $bigarray["X"] = array(): $bigarray["Y"] = array(): then fill those arrays with few unknow number of values. array_push($bigarray["X"],$value1); array_push($bigarray["X"],$value2); array_push($bigarray["Y"],$value5); .... but array_push doesn't manage it. How to do so ? Bob Bob Bedford wrote: > I've to save in an array of array some values. > > Problem: I don't know the size of the array before filling it. > > I'd like something like > > $bigarray = array(): > > then runnig the code I must create dinamically (I don't know how > many) few arrays in the bigarray; $bigarray["X"] = array(): > $bigarray["Y"] = array(): > > then fill those arrays with few unknow number of values. > array_push($bigarray["X"],$value1); > array_push($bigarray["X"],$value2); > > array_push($bigarray["Y"],$value5); > ... > but array_push doesn't manage it. > > How to do so ? $bigarray["X"][] = $value1; $bigarray["X"][] = $value2; .... $bigarray["Y"][] = $value5; -- Kim Andr� Aker� - kimandre@NOSPAMbeta...

arrays of arrays
Does anyone know if (and how) to create an array/vector of vectors, not necessarily of the same dimension, e.g. if a=[1 2 3] and b=[9,10], if it is possible to form an array/vector c with c(1)=a, c(2)=b? Ray wrote: > Does anyone know if (and how) to create an array/vector of vectors, not > necessarily of the same dimension, e.g. if a=[1 2 3] and b=[9,10], if > it is possible to form an array/vector c with c(1)=a, c(2)=b? You can put any scilab object in a list : c = list(a,b); // or c=list([1 2 3],[9,10]); then c(1) is the vector [1 2 3] and c(2) the vector [9,10] c(1)(2) is the second component of the fist list component , etc... Now you can also use array of cells (as in Matlab) but I believe that lists are more tested than cells which have been recently introduced in scilab. hth Bruno Thank you. ...

Array of Array
Hello, I am wondering if a three-dimensional arrays: array3d_1, array3d_2, array3d_3. Is it wise If pass this to a function/subroutine using array constructor to create four-dimensional array on the fly, such as: call mysubroutine ( (/array3d_1, array3d_2, array3d_3/) ) ? Will that be expensive, or is there better way to do it ? I am also not certain if this on-the-fly array construction will be the first or the last dimension. Thanks for any help. RDB reubendb <reubendb@gmail.com> wrote: > I am wondering if a three-dimensional arrays: > array3d_1, array3d_2, array3d_3. > Is...

array in array??
awk ' BEGIN{FS=OFS=":"} {split($4,a,",") for(i in a)u[a[i]] for(i in u){x=x","i;delete u[i]} print $1,$2,$3,substr(x,2);x="" }' /etc/group for(i in a)u[a[i]]----------------------------------------------I could not understand this line This means we can an array in an array?? nag wrote: > > for(i in a)u[a[i]] > > I could not understand this line > > This means we can an array in an array?? Yes. In the above example, the values of array a are used as subscripts of array u. See also: http://www.gnu.org/software/gawk/manual/gawk.html#Arrays Hermann On Aug 12, 11:54=A0pm, nag <visit...@gmail.com> wrote: > awk ' > BEGIN{FS=3DOFS=3D":"} > {split($4,a,",") > =A0for(i in a)u[a[i]] > =A0for(i in u){x=3Dx","i;delete u[i]} > =A0print $1,$2,$3,substr(x,2);x=3D"" > > }' /etc/group > > =A0for(i in a)u[a[i]]----------------------------------------------I > could not understand this line > > This means we can an array in an array?? No, it means that the elements of array "a" are the indices of array "u". e.g. a["1"]=3D"p", a["2"]=3D"q" u["p"]=3D"foo", u["q"]=3D"bar" If we could have an array within an array then this: a["1"]=3D"foo"; a["2"]=3D"bar" u["1"]=3Da[] would...

array of array?
Hi, there, I wonder, if that is possible to have a array of arrays, for example A(1)=a1(1:N,1:M); A(2)=a2(1:N,1:M); A(3)=a3(1:N,1:M); � If no such thing, is there any simple method to do the same things as dimension A(i,j,k) in Fortran? Could any one please input anything? Thanks hnliuhy wrote: > > > Hi, there, > I wonder, if that is possible to have a array of arrays, for > example > A(1)=a1(1:N,1:M); > A(2)=a2(1:N,1:M); > A(3)=a3(1:N,1:M); > � > > If no such thing, is there any simple method to do the same things > as > dimension > A(i,j,k) in Fo...