LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MATHSCRIPT array to IMAQ

I have a 2D array coming out of Mathscript; values of 0 and 1, the 1's form a small rectangle in the center.

 

So I  expect to see a small white rectangle in the center.  but all I see is black.

 

I have attached the simple VI in both ver 8.5 and 8.0.

 

Thank you.

Download All
0 Kudos
Message 1 of 3
(2,734 Views)
The pixel type you choose is U8. 0 is black, 255 is white. So you should change "1" to "255". Then you will see a white rectangle in the center.
Message 2 of 3
(2,723 Views)

Thank you. I changed the 1 to  255 and it worked.

 

Have a pleasant weekend

0 Kudos
Message 3 of 3
(2,716 Views)