Normal Command Process Event

Register the method to be executed when there is an input from a normal command. Add the normal command processing event as follows:


1.Add the SerialCommand control
Select the SerialCommand control from the toolbox and then Drag & Drop it to a position on the Form.


2.Set the properties
Display the Property window for the measurement initialization control added and set the following properties.
userForm : A form object to receive events from CoreRA. In most cases set the PanDA Form where the control is added.
command : The registered event handler is executed when a serial normal command string or a command with the set string is entered.
IMPORTANT
Only uppercase strings are allowed. Lowercase commands are ignored.
 


3.Add the event handler
Double-click the normal command control added or click the event button to display the event for the object. And then double-click the [SerialCommand] field to add the event handler.
Describe the process to be executed when a serial normal command is input in the added event handler.
The following arguments are passed to the added event.


Table: Arguments
Item
Meaning
Description
ioIdent
I/O identifier of the command source
Any response can be returned by using this identifier and executing the SendData() or SendString() methods.
argumentCount
Total number of arguments (excluding the command)
When entered as <Command> <Parameter0> <Parameter1>, argumentCount is 2.
argumentVisual()
Argument string array (excluding the command)
When entered as <Command> <Parameter0> <Parameter1>, argumentVisual(0) is <Parameter0> and argumentVisual(1) is <Parameter1>.
result
Command processing result strage variable
Zero is stored when command processing completes normally and non-zero is stored when it completes abnormally.
[OK] is returned as the command response when the command completes normally and [ER] is returned when it completes abnormally.
Note
When performing a scene switch, scene group switch, or register/insert/delete/copy processing unit, be sure to disable/enable the measurement trigger. This event handler does not disable/enable the measurement trigger.