LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

RS232 communication

Hi all I want to read a code communication to C51 by RS232,if define constant send as : char dataBuffer[10]={0x02,0xFD}; ComWrt(2,dataBuffer,strlen(dataBuffer)); ComWrtByte(comport, 0x02); ComWrtByte(comport, 0xFD); It's OK . Now I want to use Numberic Control write anyone such(02FD,02FB,0xF7)can identify as define constant(0x02,0xFD),how to converter it .Thanks for your help any!

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

I think you should use a String control instead of a Numeric control. Or you should convert the numeric type to char.

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

I would use sprintf

Jattie van der Linde
Engineering Manager, Software & Automation
TEL Magnetic Solutions Ltd
Message 3 of 3
(2,253 Views)