LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

RS232 communication

Highlighted

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
(86 Views)

回复: RS232 communication

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
(56 Views)

Re: RS232 communication

I would use sprintf

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