The CoordinateToMessage Transform converts Touch Screen events to Signals that can be used to control a Touch Screen device.
The Transform reads an Event Signal, Coordinates, from its inport. It uses a CSV file to convert the event parameters to X,Y coordinates. The coordinates are transmitted from the outports in a selectable format.
Use the Transform's Properties box to select the following Properties: CSV File Path: Click
Message Conversion: Select the type of messages transmitted by the Transform. Current selections are TLIN, MonkeyRunner, and GrblControl. When you specify this property, the outports on the Transform are updated. •TLIN: The LIN Message port may be connected to a LIN-controlled touchscreen device. •MonkeyRunner: The MKR Touch and MKR Drag ports may be connected to the mTouch and mDrag ports on a MonkeyRunner Transform. •GbrlControl (Gantry): This message port may be connected to the Transmit G Code port on the Grbl Device (Gantry) Transform. •GMLAN Message Interval: When LIN messages are output, this controls the interval between multiple messages. This value may be overridden when the input transition is defined. |
Export the inport, Coordinates, to a TestCase. In the TestCase in MxVDev, double-click on the Signal to create a transition (event). The options in the dialog box were defined in the CSV file. When the transition is transmitted, the Transform converts it to a message or event Signals, based on the CSV file and the Transform's properties.
|
To make setting test parameters easier, the coordinates of all touch areas are referenced to the upper left hand corner of the area of interest. The output of the Coordinate to Message Transform uses those coordinates. The top left corner is Test Home. Its X and Y coordinates are zeros in the Coordinate to Message CSV file. For example, the first coordinate set below references that corner.
Overtravel is a number that allows a compliant tip to exert pressure on the touch device. The number indicates the desired additional Z axis travel in millimeters. Overtravel also allows for accommodating some positional errors in the Z axis. The sum, OVERTRAVEL + Z, must be less than the maximum distance the Z axis can extend from the Home position otherwise the motor will slip and the Z position will be increasingly inaccurate. |