LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting rondom numbers array to boolian arry


I have 3×6 array of random numbers and i want to connect same array of boolian so when the number of random is 0 the corresponding value of boolia

0 Kudos
Message 1 of 4
(1,446 Views)

What have you tried?

0 Kudos
Message 2 of 4
(1,431 Views)

Hi Dalmar,

 


@Dalmar252 wrote:

I have 3×6 array of random numbers


So there are 18 random numbers…

 


@Dalmar252 wrote:

i want to connect same array of boolian


Which array of booleans?

What kind of "connection"?

 


@Dalmar252 wrote:

when the number of random is 0 the corresponding value of boolia


Do you really expect a random number of being "zero"?

What should happen when the value is zero?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 4
(1,427 Views)

@Dalmar252 wrote:

I have 3×6 array of random numbers and i want to connect same array of boolian so when the number of random is 0 the corresponding value of boolia


 

Can you go back and finish the sentence so we see the entire question. thanks! It is best to attach your VI (or a simplified version).

 

Where do these random numbers come from? If they are generate by e.g. the dice, the chance of zero is zero! Are these number integers?

 

What should be output be? A 2D array of booleans? A single boolean indicating that all or some are zero? An array of indices of all elements that are zero? Something else?

0 Kudos
Message 4 of 4
(1,421 Views)