LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help needed in creating Front End GUI

I don't know how much I can help anymore.  I don't understand the direction you are taking your application.

 

Originally you wanted to create a front panel that allowed  you to dynamically create different controls.  It made sense at the time.

 

Now you are adding more complication by creating arrays of those same controls, then combining those arrays into a 2-D array.  The organization of the data structure makes no sense to me anymore.  What is the significance of the 2-D array?  It seems like you are trying to create an array where each element will have different properties such as min and max.  Arrays have to consist of elements that all have common properties with the only difference between them being value.  Also, it looks like you want to combine a 3 element array with another 3 element array with a 4 element array and yet another array that doesn't seemed to be defined in your description.  All 2-D arrays must be rectangular.  So 3 arrays combined will turn into a 3 by N array where N is the length of the largest 1-D array.  In this case it will be 3 by 4.  (Note:  rows and columns may be reversed depending on the way the 1-D arrays are created and then combined.)

0 Kudos
Message 21 of 29
(1,005 Views)
Sir,

     I was able to write the code to search the ID for how many times it is repeating in the column,but I want to programmaticaly search how many ID's in the column are repeating and want to create a numeric array for each ID with the number of column equal to number of times repeating also setting its data range.Can you pls suggest me in doing this furthur. Iam really in very urgent need of this.
 
 
-Lucky 
0 Kudos
Message 22 of 29
(1,004 Views)

Sir,  

 

     The GUI which we developed earlier is used for receiving messages but the one which Iam developing now is used for Transmitting messages.

 

             Here is the story. The Vi which is used to transmit messages is basically a 2-D array.Iam attaching the vi which iam using to transmit messages. This vi works like this. We need to enter the channel names and channel values which we need to Transmit on CAN Bus. Each ID can contain any no of channels. So If channels belonging to same arbitration ID needs to be transmited then the data should be entered within the same (row of)array. If the channel belongs to different ID then the value should be entered in the different (row of) array. So I asked you to set the number of columns equal to number of times the Id is repeating.Since we are creating individual array's for each ID  after developing the GUI we should feed this to the VI which is used to transmit messages right, since it is a 2-D array I want to Build all the arrays  to make a 2-D array.

 

 

                              If my approach to the solution is wrong pls help with any other approaches because iam  badly in need of this.

 

 

- Lucky 

0 Kudos
Message 23 of 29
(1,002 Views)
This counts the repeats giving an array of each element repeated and the number of times it showed up.
0 Kudos
Message 24 of 29
(998 Views)

lucky_k wrote:

Sir,  

 

     The GUI which we developed earlier is used for receiving messages but the one which Iam developing now is used for Transmitting messages.

 

             Here is the story. The Vi which is used to transmit messages is basically a 2-D array.Iam attaching the vi which iam using to transmit messages. This vi works like this. We need to enter the channel names and channel values which we need to Transmit on CAN Bus. Each ID can contain any no of channels. So If channels belonging to same arbitration ID needs to be transmited then the data should be entered within the same (row of)array. If the channel belongs to different ID then the value should be entered in the different (row of) array. So I asked you to set the number of columns equal to number of times the Id is repeating.Since we are creating individual array's for each ID  after developing the GUI we should feed this to the VI which is used to transmit messages right, since it is a 2-D array I want to Build all the arrays  to make a 2-D array.

 

 

                              If my approach to the solution is wrong pls help with any other approaches because iam  badly in need of this.

 

 

- Lucky 


 

This new post and VI shows your data organization to be even more complicated than you described when this thread first started out, and I think the VI shows an even more complicated data structure than you describe in the message body.

 

I don't understand it, so I can't help with it.  You will need to sit down and figure out what your inputs are and what you want your output to be.  Create a flowchart or some pseudocode that describes how you would step through and loop through your input data to structure in whatever way you need for the output.

 

What is still missing is what the original questions about the GUI interface of programmatically assigned controls relates to this more complicated data structure.

Message 25 of 29
(995 Views)

Sir,

 

     For the above Tx_GUI2MOD.vi  Can you pls add the code or give any snap shot to create a control with a Numeric array 1-D (programatically from the predefined controls to each  ID. setting its visibility), with the MAX and MIN values taken from the table( though the individual elements in the array is set to be same scale).And its number of columns set to the number of time's the ID is repeated. 

 

-Lucky. 

0 Kudos
Message 26 of 29
(978 Views)

Sir,

 

      For the Vi which counts the repeats can you pls add the part of the code to create a control with a Numeric array 1-D (programatically from the predefined controls to each  ID. setting its visibility to eliminate any excess numeric arrays or left out), with the MAX and MIN values taken from the table( though the individual elements in the array is set to be same scale).And its number of columns set to the number of time's the ID is repeated. Pls sir  help me to till this extend, I will manage myself with the rest of the code.

 

-Lucky.

0 Kudos
Message 27 of 29
(957 Views)

Sir,

 

     I was able to set the visibility, Number of columns for each array and the Caption for each array. Just left out with setting the max and min values.Can you pls find some time and help me to set the max and min values . From the property node i created I couldnt see the option scale/ range.

 

-Lucky

0 Kudos
Message 28 of 29
(949 Views)

See attached.

 

0 Kudos
Message 29 of 29
(942 Views)