LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

need some help.

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!

0 Kudos
Message 1 of 11
(2,515 Views)

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.

threshold.png


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 2 of 11
(2,493 Views)

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

0 Kudos
Message 3 of 11
(2,484 Views)

mm.png

0 Kudos
Message 4 of 11
(2,480 Views)

Hi Pauli,

 

ever considered to multiply your "Arvot 0 tai 255" with 255? Guess what the result will be 😄

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 11
(2,475 Views)

its only names, means values 0 or 255

0 Kudos
Message 6 of 11
(2,472 Views)

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?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 11
(2,468 Views)

there is no progman back round. i wrote all numbers.

0 Kudos
Message 8 of 11
(2,456 Views)

This?

threshold.png


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 9 of 11
(2,452 Views)

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!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 10 of 11
(2,449 Views)