Hello all,
I am using a shared variable to share a 2D array of SGL datapoints between two networked PCs:
PC-1 has the shared variable setup in the project as a Network-published variable using Buffering (
size = 1 array, Array size = 20 elements).
PC-2 reads the shared variable using an array indicated with data binding to (PC-1). A colleague put the shared variable in a flat sequence with a wait state. I couldn't see any reason why this would work, so I removed the flat sequence. After that, I found that sometimes the array will be empty when it should have valid data. I put the flat sequence back and viola!, the program works normally.
Attached is a code snippet from PC-2 where the issue happens. ('Data' is the shared variable array'). Any ideas?
Message Edited by vt92 on
04-02-2008 10:04 AM
>
"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal