07-17-2017 08:15 AM - edited 07-17-2017 08:20 AM
Hello All,
Using the ramp function i have generated an arry of Values from my min, max and the step. Now i want to add another array with 2 constants alternately along with this array. Such that if i have 10 values in this array then the constants should be inserted only 10 times alternately and if this array has 100 values then accordingly. A short example is shown in the attachment!
Regards!
Solved! Go to Solution.
07-17-2017 08:51 AM
I am not sure I understand your goal here. Perhaps an example of data would help (what you have coming in and what you expect as a result).
07-17-2017 08:57 AM
This should do what your example shows. I'm sure there is a more elegant solution than this but it's what I got.
07-17-2017 08:59 AM
Hi,
I want an array in this format (see picture). The first column can be created using the ramp funtion as shown above with the help of Min, Max and step values as inputs. I want to include the second column where i can insert two constant values alternatively.
07-17-2017 09:07 AM
@aputman wrote:
This should do what your example shows. I'm sure there is a more elegant solution than this but it's what I got.
Actually you can get rid of the transpose by moving the "Build Array" inside the while loop and wire it up with the input array.
07-17-2017 09:22 AM