LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

convert to binary

Hello,

 

In this document you can find a diagram to convert to binary. But it doesn't work. Can you find the mistake in this diagram, please?

 

 

Kind Regards,

 

Jerome

0 Kudos
Message 1 of 3
(2,574 Views)

You have attached much more than one VI, so it is not clear waht you are talking about.

 

untitled:

 

You are not converting anything to binary*, you are converting to an array of scaled greyscale colors that you convert to I32. Unfortunately,your output terminal is U8, meaning you are throwing way 2/3 of the information (...but since it is greyscale, it contains all information). I would change the representation (right-click...representation...I32) of the output terminal to the correct data type. (notice the red coercion dot? That needs to go!)

 

* everything is binary at its core

 

What are you actually trying to do with all this? The code looks very convoluted.

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

Looking at the main P&O... VI:

 

Again you have complete datatype confusion. There should not be any orange on that diagram! Make sure that all your diagram constant have the correct representation.

 

Explain what the program is supposed to do, what ouput you want, what output you get, and what's wrong with it.

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