LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Isolating individual array elements in increments of time

Solved!
Go to solution

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.

Download All
0 Kudos
Message 1 of 3
(2,345 Views)
Solution
Accepted by topic author mtrapuzz

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"…

check.png

Please use more descriptive names for your controls/indicators - it will help to understand your code!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(2,323 Views)

Thank you!

0 Kudos
Message 3 of 3
(2,280 Views)