AN2263 Freescale Semiconductor / Motorola, AN2263 Datasheet - Page 11

no-image

AN2263

Manufacturer Part Number
AN2263
Description
PC Master Software: Creation of Advanced Control Pages
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
MOTOROLA
PC Master Software: Creation of Advanced Control Pages
When the page is loaded the values of all input boxes are filled by the
appropriate parameter values from the target board application. Create the
ReadSettings sub-routine to perform this task and let the sub-routine be called
after the Control Panel is loaded. Add a call to this procedure at the end of the
HTML body section.
The sub-routine body is like this:
<script language="VBScript">
Sub ReadSettings()
Use the ReadVariable function of the PC master software ActiveX object in
order to fill the first input box (Harmonics I amplitude in the example).
This function gets as the first parameter the name of the PC master software
variable. The next two variables passed to the call are filled the variable value
(v) and the value in text format (tv) according to the setting in PC master
software. The last parameter (retMsg) is filled by an error message in case
there is an error. The function call returns true (and v and tv are filled) if the
function was performed successfully. It is false if it fails for any reason (and
retMsg is filled).
Repeat this part for all application parameters to fill all control panel input
boxes: d_omg1, A2, d_omg2, D, N, mi (see
End Sub
</script>
<script language="VBScript">
</script>
Dim succ,v,tv,retMsg
succ = pcm.ReadVariable("A1",v,tv,retMsg)
If succ then
else
End If
Freescale Semiconductor, Inc.
For More Information On This Product,
ReadSettings
A1.Value = tv
A1.Value = retMsg
Go to: www.freescale.com
Appendix
B).
Example: Step-by-Step Guide
AN2263/D
11

Related parts for AN2263