Writing to the serial port, Reading from the serial port, 2 writing to the serial port – ChamSys MagicQ User Manual User Manual

Page 275: 3 reading from the serial port

Advertising
background image

MagicQ User Manual

246 / 355

33.2

Writing to the serial port

Commands are transmitted from the serial port by placing the command in the Macro field of the Cue Stack window.

The format of serial commands is X followed by the data. To send serial data, the X command must be the only macro command
in the macro field. The X command is followed by ASCII data contained within “ “ or ‘ ‘ or by decimal values separated by
commas. For example to send Hello World followed by a carriage return:

X”Hello World”,10,13

To send the binary data stream 00 01 02 03 04

X0,1,2,3,4

To send text only:

X”abcedf”

To send several lines of text:

X”Hello”,10,13,”World”,10,13

33.3

Reading from the serial port

By default data received on the serial port is ignored. This can be changed to make MagicQ accept remote commands received
on the serial port. In the View Settings view of the Setup Window, set the serial input type to “ChamSys Serial Remote”.

ChamSys Serial Remote protocol consists of a list of parameter values separated by commas ‘,’ and ending in a character A to Z
(or a to z). Commands can contain spaces, tabs, and carriage returns; they are all ignored. See the section on ChamSys Remote
Protocol for further details.

Advertising
This manual is related to the following products: