10-25-2018 01:33 AM
Hello Everyone..
I've got a program in which simulate signal outputs signals with different frequencies. I want to store that signal amplitude values in 2D array. Each column of 2D array must contain that particular signals amplitude values. for eg: if 10 Hz is selected, the first column should have 10Hz signal's amplitude value, if 20 Hz is selected then second column should have its respective amplitude value but the first column should retain 10Hz signals amplitude value.
How can I solvedo this? Pls help
10-25-2018 01:35 AM - edited 10-25-2018 01:36 AM
Hi ragil,
1. initialize the array to provide elements for all frequencies to be measured.
2. store the array in a shift register
3. replace just the column for the last measurement frequency
You need InitArray, a loop with a shift register and ReplaceArrayElements…
10-25-2018 02:39 AM
In addition, I would recommend that you keep the data in rows instead of columns. Now the elements for each new experiment are adjacent in memory. You can always transpose it for saving later.
11-13-2018 01:06 AM
Hi..
I did same as you told and implemented in my program layout. But still it is not giving proper output.
Vi attached please let me know the mistake.
Thanks in advance