LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array of waveform out a loop

Solved!
Go to solution
Hi,
As a new Labview Member, I wanted to optimise my code. For that, I needed to loop the code bellow. I though that the code would give me 3 arrays, each for a loop, but for now, it only updates the same array. So, do I have a problem with my code or it isn't achievable that way ?
Thank for reading.
 
Back.png

 

Download All
0 Kudos
Message 1 of 7
(2,617 Views)

Hi Staken,

 

for now, it only updates the same array.

Yes, as there is only one array, stored in the feedback node…

 

So, do I have a problem with my code or it isn't achievable that way ?

What exactly do you want to achieve?

What do you want to optimize?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(2,594 Views)

Hi,

I think that this would help.

Array of waveform.PNG

 

https://images.youracclaim.com/size/110x110/images/7c5d31f5-2069-4618-ba59-b710c2b6bbe4/CLD.png
0 Kudos
Message 3 of 7
(2,553 Views)

@GerdW  a écrit :

What exactly do you want to achieve?

What do you want to optimize?


Okay, so here my 'before' code.

Before.png

It Initialise, read data, and store it in the feedback for each data.

I wanted to regroup the code in a loop, so it would be easier to modify and to read.

 

But i need it to stay that each data has her own waveform chart.

So I wanted to use the loop, and keep the feedback for each.

 

Sorry if im not very clear.

0 Kudos
Message 4 of 7
(2,496 Views)

@simo22  a écrit :

Hi,

I think that this would help.


I'm using LV 2016, so I can't load your VI.
And I couldn't find the function you use to convert the waveform to the string.
Can you convert it or tell me the name of it?
0 Kudos
Message 5 of 7
(2,495 Views)
Solution
Accepted by topic author Staken

Hi Staken,

 

I couldn't find the function you use to convert the waveform to the string.

That's not a string, it's a cluster.

(No idea what it's good for in this special application - the waveforms itself consist of clusters…)

 

See this:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 7
(2,486 Views)

This is what i wanted, Thx you both of you.

0 Kudos
Message 7 of 7
(2,470 Views)