04-03-2010 10:43 PM
Line 10 from the block diagram creates an array after taking the values from the array x and y from line 1 and then does the following calculation xsin(theta)+ysin(theta). ---> represented in table in front panel
What i need to know is how to create an array made of the x and y that give the value of xpos, in this case, 1 in the Table from the front pannel.
Solved! Go to Solution.
04-03-2010 11:19 PM
You have 35 lines of mathscript code. You have 11 arrays of controls or indicators on your front panel. I have no idea what you are describing what you want to do.
All I can do is suggest you go through the array palette with context help open so you can see what the array functions do and figure out how to combine them to do what you want.
I've got a feeling that by using the mathscript node, you are making this way more complicated than it needs to be.
04-04-2010 02:35 AM
04-04-2010 10:07 AM
04-04-2010 10:53 AM
04-04-2010 11:48 AM
04-04-2010 05:19 PM
How can I put those index values in an array. I tried to use build array but it didn't work. Any idea?
04-04-2010 07:12 PM
04-04-2010 07:25 PM
04-04-2010 07:36 PM
Use index array to get the 0th column of your 2-D array called table (not ypos as you have now). Search 1-D array on that for 1, not Xpos as you have now.
Now that you have an element, you know which element of X array and Y array to extract. If needed, do the search for 1 in a loop to find the other instances.