LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

case structure append array

Hi Xeno,

 

did you even try to debug your VI? With probes?

 

General hint: you cannot replace items in an empty array…

 

General hint 2: THINK DATAFLOW! Use less local variables, use more wires, use more shift registers…

Best regards,
GerdW


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

Again, STOP POSTING PICTURES! Attach your VIs!

 

If you want to ad elements to an array, use "insert into array" and if you wan to append to an array, use "built array".. (and it is a complete mystery why your are bundling a cluster and then immediately unbunding the same elements again. Just use the two scalars and leave the cluster operations out of it!)

 

 Your code is peppered with race conditions due to the blatant overuse of local variables, so even if you would fix the array operations, you might get unanticipated surprises down the line.

0 Kudos
Message 12 of 12
(893 Views)