07-07-2014 08:11 AM
Hi !
I am currently working on a set up where the data works along Bessels functions.
One of the transformations I appy to the data are like attached. It displays the data as one of the Bessels function, depending of the Nb of mod period/px you can see on the left.
What I would like to do is make this number vary between 1 and 20, and display on the same graph the 20 Bessels representations.
I tried to use the For Loops and the "build array" at the end to put all the results in one graph, and I did not achieve to do something properly.
Do you have any ideas ??
thank you !
07-07-2014 08:47 AM
All you have to do is run your 2D array into the loop with auto indexing (as it is now). Inside the loop perform the analysis operation, but simply wire the scalar result out of the loop (again with autoindexing) and you will have your array of results. All the other logic is unnecessary.
Note that the way your code is written you are analyzing each row as it comes through. If you are intending to analyze columns youu need to transpose the 2D array before entering the loop.
Mike...
07-07-2014 08:58 AM
I am going to be really honnest, I do not understand what you mean 😕
I know it sounds noobish but I just started Labview 2 weeks ago ... I have trouble connecting things together and manage the Dimensions of array
I attached the VI, could you light my lantern a litle further ? 😕
Thank you
07-07-2014 09:41 AM
Can t I use the Decrement PtByPt function ?
07-07-2014 11:16 AM
I can't get to this until this evening. In the mean time go through the online tutorials -- especially the ones dealing with FOR loops and auto-indexing.
Mike...
07-07-2014 11:16 AM - edited 07-07-2014 11:16 AM
OOps, double post
Mike...
07-08-2014 02:33 AM
Hi !
I think I solved the loop issue.
Now I have my 20 graphs which displays on the one graph.
But I cant get to represent all of them on the same graph, one moves to let the other one appear as fast as possible.
To make them all appear, I used a technic I used once already and which did work. I t was "build array".
But here it seems it does not work that way 😕