Sending Control Characters to Com Port
Keywords: Num2Char
Question:
I have the serial extender running well and have it communicating with a serial device I have here. One question though, if I want to send a Ctrl-IT (That's control I T at the same time) what would be the standard Winbatch command to does this? Would it be like @ctrl-i-t? or something like that?Answer:
Ctrl-A is a 1Ctrl-Z is 26
So you could do something like:
Ctrl_A=Num2Char(1) Ctrl_I=Num2Char(9) Ctrl_T=Num2Char(20) Ctrl_Z=Num2Char(26)So it is Ctrl-I followed by a normal T?Or is it Ctrl_I followed by a CTRL-T?
Let's say the T is normal:
CTRL_IT=strcat(Ctrl_I,"T")Or if it's Ctrl-I Ctrl-T:CTRL_I_CTRL_T=strcat(Ctrl_I,CTRL_T)
Article ID: W12576Filename: Sending Control Characters to Com Port.txt