I been trying to convert my decimal input to binary input for my LED condition

Output from Labview as it has been transferred through serial port is a string, for example 32
I could possible change that binary and send it as a string

Input received by proteus is 3 and 2 instead 32

Can anyone help with saving that in term of binary or sort of binary pattern (if string of binary data is used)