‎06-06-2011 03:39 PM
Hi,
Sorry if subject of my post message is incorrect.
I have CCD camera (1340*400 pixels) and program take image 20*30 pixels image beginning 40*50 pixel.
When 20*30 pixels array is connected to intensity graph and Xscale.Min (or offset) and YScale.Max (or offset) are changed to 40 and 50 then I don't see anything because intensity graph plots 20*30 pixels array into first 20*30 rows*columns.
I can reshape array and make it 60*80 and them show 20*30 area beginning 40*50 pixel.
But is it possible to use 20*30 areas and show in real coordinate?
Thanks, Andrey
‎06-07-2011 11:18 AM
Is the array that you are using as the input of the intensity graph 20x30 in size? If so how are you letting the graph know that it should start putting the points at the 40,50 pixel?
One thing that you could do is to initialize a 40x50 array and add your 20x30 to it so that you have an empty array from 0,0 to 40,50 and then have your 20x30 array start from there.
‎06-07-2011 11:27 AM
I want that the arrays will be 20x30 in size instead of 60x80 (40x50 + 20x30) where only 30% is useful..
My hope was that few intensity graph properties support that. But I couldn't find myself.
‎06-08-2011 10:19 AM
The array indices will always be the x,y coordinates for the z-value contained within the array. What you could do is combine the 20x30 array with the 40x50 array (filled with zeros) for the graph but use the original array for any other operations you are performing. This way the graph will display what you want but you will retain the original array for any operations you want to perform on it.
‎06-08-2011 10:57 AM
It means - answer is impossible.
Actually, if someone will need to show negative x or y coordinate then intensity graph would not work also.
‎06-08-2011 11:26 AM
You can make your own labels.
First make the X scale invisible. Take a slider and change it to an indicator. Make its length the same as the width of the plot area of the graph. Move the slider into position to represent the scale. Set upper and lower limits as you wish. Repeat for Y scale if needed. You can color the background transparent so you do not see the slider.
The image below shows what it might look like (without changing the color to invisible, which would make it hard to see).
Lynn
‎06-08-2011 11:43 AM
Good idea!
In ant case I suppose NI needs to fix this issue.