Dear C++ Forum user. I am new to C++ I would apreciate your help on this topic.
I am writing a basic GUI program to send data to a machine via RS232 and ask the machine to store data for transmission.
I have the code in Matlab, due to license issue I want to transfer it to C++.
How can I convert this line of Matlab code to C++ code?
RD = [char(1) 'CLM' char(2) 'RD' char(23) char(4)];
CL = [char(1) 'CLM' char(2) 'CL' char(23) char(4)];
Where Char(1) is decimal 1 start of heading character.
char(2) is decimal 2, start of test character
char(23) end of transmission block
char(4) end of character string.