AN2263 Freescale Semiconductor / Motorola, AN2263 Datasheet - Page 30

no-image

AN2263

Manufacturer Part Number
AN2263
Description
PC Master Software: Creation of Advanced Control Pages
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2263/D
Appendix C
í*****************************************************************************
í Motorola Inc.
í (c) Copyright 2001 Motorola, Inc.
í ALL RIGHTS RESERVED.
í*****************************************************************************
í File Name: lms.xls
í Description: capture of application data to third worksheet
í Modules Included: ThisWorkbook, Module1
í*****************************************************************************
'*******************
'*
'*******************
Private Sub Workbook_Open()
End Sub
Private Sub Workbook_BeforeClose(Cancel As Boolean)
End Sub
'******************
'*
'******************
Public pcm As McbPcm
Public ScheduleTime As Variant
Sub RecordAndAnalyze()
30
ThisWorkbook:
Set pcm = CreateObject("MCB.PCM")
ScheduleTime = Now + TimeValue("00:00:05")
Application.OnTime ScheduleTime, "RecordAndAnalyze"
Application.OnTime EarliestTime:=ScheduleTime, Procedure:="RecordAndAnalyze", ...
Dim succ As Boolean
Dim sht As SheetData
Set sht = Worksheets("Data")
' Spectral Function
succ = pcm.ReadVariable("N", N, tv, msg)
If succ Then
Module1:
succ = pcm.ReadMemory("w", 2 * N, data, msg)
If succ Then
' clear data
sht.Range("A2:A129").ClearContents
*
*
Schedule:=False
PC Master Software: Creation of Advanced Control Pages
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
MOTOROLA

Related parts for AN2263