04-25-2006 02:18 PM
04-26-2006 02:39 AM
Kolli,
You essentially have a 2D array (of 7 rows and 2 colums). What you could do is, reshape this into a 1D array. Then split it into two 1D arrays so as to have two columns as indivdual arrays. Now build the arrays in the order you want (second column becomes first). Finaly, insert the additional elements you want at the beginning of this resulting array.
I could post the code, but I gather this is an academic exercise for you and won't spoil the fun. However, the words in italics above are hints -- look for Array functions relating to those on the pallette.
Good luck!
-Khalid
04-26-2006 07:15 AM
04-26-2006 07:32 AM
Hi, Khalid,
Here Alpha_to is not a 2D array,it's a 1D array.
The first column 0,1,2----7 are the index values of corresponding array values of 1,2,4,3,6,7,5....
In Alpha_to, in index 0,the value is 1 and in index 1 ,the value is 2,
But I have to prepare a new array Index_of , inthat in index 1,the value is 0 and in index 2,the value is 1..like this.
Ultimately in the new array Index_of ,in index 0, I have to insert the value 'A0'..
Actually I am working on my Master thesis "Implementation of Reed Solomon Encoder using LabVIEW" ,in this first step is i have converted the folowing 'gf.c' into corresponding LabVIEW code.
I am here attaching gf.c & my deveoped code,in my code I successful only to generate Alpha_to only.
04-26-2006 07:37 AM
Hi Jim,
Hi, Khalid,
Here Alpha_to is not a 2D array,it's a 1D array.
The first column 0,1,2----7 are the index values of corresponding array values of 1,2,4,3,6,7,5....
In Alpha_to, in index 0,the value is 1 and in index 1 ,the value is 2,
But I have to prepare a new array Index_of , inthat in index 1,the value is 0 and in index 2,the value is 1..like this.
Ultimately in the new array Index_of ,in index 0, I have to insert the value 'A0'..
Actually I am working on my Master thesis "Implementation of Reed Solomon Encoder using LabVIEW" ,in this first step is i have converted the folowing 'gf.c' into corresponding LabVIEW code.
I am here attaching gf.c & my deveoped code,in my code I successful only to generate Alpha_to only.
| GF_Multiplier1.vi (33 kb) | |
| gf.c (3 kb) |