LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Lock time on waveform graph

Solved!
Go to solution

Hi lorc,

 


@lorc34 wrote:

Not quite sure how the  for loop works to be honest


This is basic LabVIEW knowledge…

The loop iterates on autoindexing array inputs as often as there are elements in the array. When there are multiple autoindexing inputs the one with the lowest number of elements wins!

 

Simple as this: As your feedback node contains an empty array the loop will iterate zero times.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 11 of 12
(48 Views)

Thanks Gerd, 

 

I realise now that I did not implement my code the same as ZYOng and as you said was passing an empty array in.

 

The first while loop iteration, the case structure is TRUE, this allows the DAQmx read to pass through the structure to the feedback node, initialising it via 'First call' function, then from there, it starts to use the append waveform.

 

It then has a length of 4 on both the appended waveform and the new waveform

 

Thanks 🙂

0 Kudos
Message 12 of 12
(42 Views)