LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Arrays of Hex numbers

Hello,

I was wondering if anyone could give some help as to how I could send an Array of hex numbers to a Serial Port.

I have the array data type as unsigned char, which is correct in this instance.

However using the ComWrt( function, the buffer is required to be data type char.

How is it possible to change from an unsigned char data type to char? and ultimately will this solve my problem and allow me to send packets to the serial port?

Thank in advance.

 

 

 

0 Kudos
Message 1 of 2
(1,934 Views)

Just use a cast for that problem.

But remember that there may be other problems:

Does your receiver expect the number in text format or in binary format. ?

If it is binary : does it use big endean or little endean ? 

0 Kudos
Message 2 of 2
(1,907 Views)