03-10-2021 12:53 AM
Hi Diego,
@diego_gonza wrote:
The size of the array should be the numbers of pixels (col or row).
So the input "Puntos en X" is 5 and you get an array with 11 elements?
03-10-2021 04:19 AM
I dont know why appear these 0s, we use "puntos en X" for the iterations.
03-10-2021 04:34 AM
03-10-2021 04:54 AM
And what function is the best for change the valors of arrays?
03-10-2021 05:05 AM - edited 03-10-2021 05:09 AM
Hi Diego,
@diego_gonza wrote:
And what function is the best for change the valors of arrays?
When you want to change an element of an array then you want to replace its value: use ReplaceArraySubset!
When all you need is an array with increasing numbers like "1, 2, 3, 4…" then you just need a FOR loop and have "i" autoindexed into an output array. Then "+1" after the loop:
03-10-2021 05:25 AM
Ok thanks, now it works fine.
I have another problem, the scale of x in the XYGraph stop earlier than the number that i impose, i mean if i chose 1000, in the graph appear less depend the number of pixels ("puntos en x"), the first and last level of the profile appear cut in half.
03-11-2021 01:17 PM
We cannot run your last VI because of missing subVIs (Maybe you included them earlier, but I don't have them).
You also have glaring race conditions, for example the "profile" local variable most likely gets read before the "profile" indicator gets updated. There is no need for any local variables here!!!
Your intensity graph goes from 0 to 900 (1000 is fake because of this problem). You can easily adjust the x-scale of the xy graph programmatically to pad with sufficient range to see whatever you want to see.
03-12-2021 03:31 AM
Thanks!
And how or where can i change it or ghange the program to fit the scale?
Sorry if its so easy but im starting and i dont know how do it 😥
03-12-2021 09:33 AM
@diego_gonza wrote:And how or where can i change it or ghange the program to fit the scale?
Sorry if its so easy but im starting and i dont know how do it 😥
Currently, your x-scale is set to autoscale. You can turn that off and instead set the min and max via a property node according to the data.
03-15-2021 04:30 AM - edited 03-15-2021 04:31 AM
Thanks, we finally got it,
For end it, i can convert the array (intensity graph) to a image but i dont know how to do it with the cursor (the line of the profile for this case) included, i mean i want the finished image with the cursor in it.