I am having trouble with sending RS232 commands to a mixer.
Here's an example of the code I am using.
If I explicitly send the command it will work.
- ComWrt (1, "\2M01H\r" , 6);
// This command works
But when I read a string from a String control and send a BUFFER with the command it does not work.
-GetCtrlAttribute(panelhandleMain,panelMain_strCOMMAND,
ATTR_CTRL_VAL, cmdstring);
GetCtrlAttribute(panelhandleMain,panelMain_strCOMMAND,
ATTR_STRING_TEXT_LENGTH, &cmdlength);
err = FlushOutQ (1);
Delay(1.0);
cmdstring[cmdlength] = 0;
ComWrt (1,cmdstring,cmdlength);
//This command does not work
Any assistance will be greatly appreciated.
Thanks.