Thomas,
I just tried this on an Ultra10, Solaris7 with LabVIEW 5.1
I do not see this behavior. I think I re-created it correctly, but you can
send me a copy of your VIs if you want.
I will say that 5.0.1 had some memeory problems and I would suggest that
you upgrade to 5.1.x as a minimum. There is an update from 5.0.1 to 5.0.1f1
which is free on NIs ftp site. I am a little suprised they did not tell you.
This update helps with some of the inplaceness (IE without copying)
array operations.
I am not sure whay you say this makes Labview useless. I have used it on Sun
machines since
Version 3.x. and it works fine. There have been a few instances where I ran into
problems but
usually I could change the code to be more efficient.
Let me know if you need more help.
Kevin Kent
Thomas Ludwig wrote:
> Labview 5.0.1, Solaris 8 on a Ultrasparc 5
>
> Imagine two very simple vis:
>
> 1) subtest.vi: Has a control and an indicator, both 1D-arrays of 'DBL'. The
> control is wired directly to the indicator, both arrays are empty, the
> vi is
> saved and the front panel is NOT open.
> 2) memtest.vi: Has a 'FOR' loop with a 'DBL' constant in it which is connected
> to the border of the loop, indexing is enabled. 100000 is wired to 'N'. the
> output of this loop (an array of 100000 'DBL' values = 800kB) is wired to
> 'array size' which again is wired to an 'I32' indicator.
>
> If you run 'memtest.vi', the profiler will report approx. 800kB of
> memory used
> by memtest.vi. So far, so good. Now, if I insert 'subtest.vi' between
> the loop
> and 'array size' (Again: the front panel of subtest.vi is NOT open), the
> profiler will report approx. 1600kB of memory and the timing statistics clearly
> show, the the array gets copied.
>
> What's going on here? The 'G Reference' clearly states, that under these
> circumstances the array should not be copied.
>
> NI support says:
>
> "According to R&D, this is the expected behavior on a Sun."
>
> and
>
> "The G Reference Manual was written with the
> Mac OS and Windows OS as references."
>
> I can't believe it. This makes Labview useless for me.
>
> Has anybody else experienced this? Any hints, ideas ... are welcome.
>
> TIA
> Thomas
> --
> Thomas Ludwig
> Institute of Mineralogy
> University of Heidelberg, Germany