02-08-2018 12:54 PM
Hello,
I have a DAQ Assistant node that generates a signal, and I need this signal multiplied by different numbers. In order to do that, I created an array with specific values I will need to wire to the multiplying node, which does not take an array of numbers. Therefore, what I am trying to do in my program is to isolate each individual element of an array so I can wire one element at a time to the multiplying node.
My problem is that I need each element multiplied by the signal at once within a certain period of time, and this can only be achieved using a loop that iterates through each element. However, once I try to take the individual numbers out of the loop, it only gives me the option of either getting an index of values (which goes back to the problem of having an array), the last value, or concatenating values. Do you have any solutions so I can take each element out of the array and multiply them to the acquired signal individually within a certain time?
My VI is attached below.
Solved! Go to Solution.
02-08-2018 01:27 PM - edited 02-08-2018 01:29 PM
Hi mtrapuzz,
your "array" with those scaling factors should get a 2nd array added with your "specific time steps".
Then use your "Timer" value to find an index in the "time array" (using Treshold1DArray) and use the found index to index the corresponding scaling factor from your "Array"…
Please use more descriptive names for your controls/indicators - it will help to understand your code!
02-16-2018 08:54 AM
Thank you!