03-09-2008 08:36 PM
03-09-2008 09:21 PM
Your VI makes absolutely no sense to me, but maybe I don't understand what you are trying to do.
You seem to have dynamic data with 6 signals and 48 points/channel. Now you reshape this into an array of dynamic data with 4x13 elements from which you slice out one row or column, resp. "delete from array" is NOT the correct tool to do this, use "Index array" with one index unwired to get a row or column as 1D array.
So you end up with two 1D arrays of dynamic data that you search for DBL. It is difficult to understand how you want to search for an array element that corresponds to a scalar DBL value of 0.1. Your array elements are NOT DBLs but dynamic data, each containing many signals!
There are two elements on all your data that are "3", the rest are zero. You will never find anything that is 0.1.
Maybe you can convert your original dynamic data to a 2D array with "rows are signals" using "convert from dynamic data", then operate on the 2D array.
Coato wrote:
So ultimately, when i enter a row value of 0.5 and a column value of 0.3, my output will be 1.688.
03-09-2008 09:35 PM
Sorry, you are actually initializing this into an array of dynamic data with 4x13 elements (each element is identical and corresponds to 6 signals/48points) . Since all array elements are the same, you would not find anything unique useful using search array!
altenbach wrote:
...Now you reshape this into an array of dynamic data with 4x13 elements ...
03-10-2008 06:28 AM
03-10-2008 06:35 AM
03-10-2008 08:39 AM
03-10-2008 09:15 AM
03-10-2008 09:50 AM
01-15-2009 11:34 AM
hey coato
how did you fix it. I need a similar program. Could you post it.
Thanks a lot
01-15-2009 11:45 AM - edited 01-15-2009 11:47 AM
Oli,
You just need to use an 'index array' function.
Wire your array to the input, then enter what row and column you want to get the value for.
You can use 'array subset' if you want an entire row or an entire column.