Chapter three, Control reference – Teledyne LeCroy WaveExpert series Automation Manual User Manual
Page 116
Chapter Three
Control Reference
' Visual Basic Script
Set app = CreateObject("LeCroy.XStreamDSO")
' Save the current state of the DSO into the Notebook
app.LabNotebook.ScribbleBeforeSaving = False
app.LabNotebook.PromptBeforeSaving = False
app.LabNotebook.Save
' Create a PDF report, and store it in the root of drive
C:app.LabNotebook.ReportsDirectory = "C:\"
app.LabNotebook.Format = "PDF"
app.LabNotebook.CreateReport
' Send the report in an email
app.Preferences.Email.Mode = "SMTP"
app.Preferences.Email.DefaultRecipient = "[email protected]"
app.LabNotebook.EMailRecord
Example
The list of entries in the Lab Notebook, named using a GUID.
RecordList
Enum
Description
Values
Move to (select) the next entry in the notebook.
NextRecord
Action
Description
Move to (select) the previous entry in the notebook.
PreviousRecord
Action
Description
RecordList
Enum
ReportLogo
FileName
ReportsDirectory
FileName
Save
Action
ScribbleBeforeSaving
Bool
StartNew
Action
UseDefaultLogo
Bool
UseDefaultTemplate
Bool
UsePrintColor
Bool
ViewRecord
Action
XSLTemplate
FileName
916435 RevA
3-49