04-25-2013 03:55 AM
I need help for this kind of programming. Can someone do this?
Create a program that examines the take turns two dimensional array numerical values, which may be in the range 0-255. Values are compared with a separate control to the given value. If a single array element value is greater than the threshold value will be given to the corresponding point on the indicator table value of 255 On the contrary, given the value 0.
thank you!
04-25-2013 04:45 AM - edited 04-25-2013 04:48 AM
Not sure what you need exactly. If code below is not what you are looking for, please post some sample data so we can help you better.
04-25-2013 05:11 AM
Thanks, but not quite the kind of
Such a program in another 5x5 grid, for example, gives a value from 0-255. In addition, an extra box, which is the threshold value. Table values are compared with a threshold value. If the original number is greater than the threshold value will be set as the final value of 255 If less then 0th
for example
The control numbers 100
1,154, 245.55 -> 0,255,255,0
thanks
04-25-2013 05:16 AM
04-25-2013 05:23 AM
04-25-2013 05:28 AM
its only names, means values 0 or 255
04-25-2013 05:35 AM
Hi Pauli,
the name of that array isn't interesting, but the data is...
Your array contains 0 or 1 values, but you need 0 or 255. I suggested to multply by 255. Don't you now how to multiply or don't you understand that suggestion?
04-25-2013 05:48 AM
there is no progman back round. i wrote all numbers.
04-25-2013 05:53 AM
This?
04-25-2013 05:56 AM
Hi Pauli,
I can't know there's no block diagram when you only show a picture of the FP.
You already had the snippet from aCe to begin with - and by now you already got the solution too...
Remember: when you don't start programming on your own you will not learn to handle LabVEW!