AN2263 Freescale Semiconductor / Motorola, AN2263 Datasheet - Page 12

no-image

AN2263

Manufacturer Part Number
AN2263
Description
PC Master Software: Creation of Advanced Control Pages
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2263/D
12
PC Master Software: Creation of Advanced Control Pages
To enable the manual adjustment of the parameters displayed in the input
boxes, equip each input box with two event procedures. The event calls a sub-
routine and the sub-routine calls the target board via PC master software
activeX object.
<input type="text" name="A1" size="7" onchange="WriteValue"
onkeydown="WriteValueOnEnter">
The onchange event is automatically invoked by the Internet Explorer when the
cursor leaves the edit box. This event is handled the same way in all input
boxes by the WriteValue sub-routine. Here, the SrcElement property of the
Event object is used to determine which edit box to handle.
Use the WriteVariable function of the PC master software ActiveX object to
write the adjusted value.
Sub WriteValue
This function gets the name of the PC master software variable as the first
parameter. The name of the input box is the same as the name of the variable.
The next parameter is the new value to be written. As in the other PC master
software ActiveX functions, the return value can be used to get the success of
the call.
End Sub
Freescale Semiconductor, Inc.
Dim succ,retMsg
succ = pcm.WriteVariable(Window.Event.SrcElement.Name,
If succ then
else
End If
For More Information On This Product,
txtError.InnerText = ""
txtError.InnerText = retMsg
Go to: www.freescale.com
Window.Event.SrcElement.Value,retMsg)
MOTOROLA

Related parts for AN2263