07-30-2009 08:37 PM
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.)
07-30-2009 08:41 PM
07-30-2009 09:03 PM
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
07-30-2009 09:06 PM
07-30-2009 09:14 PM
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.
07-30-2009 11:39 PM
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.
07-31-2009 08:36 AM
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.
07-31-2009 10:57 AM
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
07-31-2009 01:26 PM
See attached.