LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array Pointer Error

Strange behaviour of array administration in Labview 7.1.1
The attached example shows a misbehaviour of  an array in a sequence structure.
The initial array is of dimension 1 and holds one invalid TCP connection (to get "lost connection" error).
The array is passed via reference to a "TCP send" sub VI which just keeps the valid connections.
So the array is replaced by an array of size 0.
Within the sequence structure the resulting array has size 0 (estimated by its pointer and an characteristics module).  Passing the pointer to the outside of the sequence and estimating the size again delivers size 1.
So we have sort of a quantum probability: an array which has size 0 and 1 at the same time, where 1 is the stable state for the world outside of the sequence.

What is happening within Labview. What is the root cause of this behaviour?
0 Kudos
Message 1 of 2
(2,155 Views)
Hello Jens,

at first: You forgot to include the control 'TCPConnect'...

Second: Why do you use a reference instead of the original array? Can't you give the array to and get it back (with changed values) from the subVi? This would remove the need for all those property nodes, which make your code slower (and harder to read).

Best regards,
GerdW


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