11-25-2011 01:34 AM
No, I just made the loop. Thanks very much for the hint!
11-25-2011 10:33 AM - edited 11-25-2011 10:34 AM
09-16-2015 09:15 AM - edited 09-16-2015 09:18 AM
I have a follow-up question. After I changed the Z-scale to grayscale, I cannot disable the autoscale of Z-scale. It looks like the minimum and maximum are always changing when I deliver different light on the camera. Is there a way to fix the min and max value ? I have tried the node properties ZScale.Minimum and ZScale.Maximum but it does not work (I mean the VI can run successfully but the scale did not change).
Thanks.
09-16-2015 12:55 PM - edited 09-16-2015 01:04 PM
You should be able to disable autoscaling for the z axis. (e.g. right-click the z-scale and uncheck autoscale or go to the properties page, "scales" tab, select the z-scale, and uncheck autoscale. Try again and report back if you still have problems.
Also since you normalize the data using the min/max values, the range should always be the same. Are you re-running the shown scaling code whenever the data changes?
It typically helps to attach the entire code instead of a fragment. Sometimes the context and execution order is important.
09-16-2015 01:24 PM
Hi altenbach
Thanks so much for your reply. That's just the problem I encountered. I have uncheck the autoscale. and without setting min/max value, z-scale will change automatically (I have check it after each run), even I set an initial values for them. After I set the min/max at the program panel, each time I run, it looks like the image twinking (It's changing fast so I cannot tell it exactly but from the scale bar I can see that it will first show min/max I set, then change to automatic value). I have attached the code I am using. Stil do not know why the min/max value will change when uncheck the autoscale.
09-16-2015 01:57 PM - edited 09-16-2015 04:08 PM
09-16-2015 04:14 PM
Hi altenbach
Thanks so so much for your comments and suggestions. I wll revise the whole program to make it work more efficiently. Regarding the problem I mentioned, I think I found the reason. The Z-scale setting part (for loop and its inputs ) I use was copied from on-line example. In there, the original author chooses min and max of each data array and sents them to the cluster inside the loop, that's why Z-scale is always in autoscale! I removed that part and send constants to the Build Array Function to set the min and max, and it works! I know there must be easier way to achieve this. Such as, delete the for loop and just use the node properties to set it. I will paly more with that. But thanks a lot for the help.
04-11-2025 11:40 AM
Set the property nodes as mentioned in a previous post as below and ignore the color array.