![LeCroy WaveRunner 104MXI Operator'S Manual Download Page 219](http://html1.mh-extra.com/html/lecroy/waverunner-104mxi/waverunner-104mxi_operators-manual_1866369219.webp)
O
PERATOR
’
S
M
ANUAL
WRXi-OM-E Rev B
219
CustomDSO PlugIn Mode
This is the mode in which CustomDSO really shows its power. You can insert any ActiveX control or graph.
Creating a CustomDSO PlugIn
Follow these steps to create an example Visual Basic PlugIn:
Start a new VB project. Select
ActiveX Control
from the
New
tab.
Resize the control. A. In the Properties window set Width 11940. B. In the Properties window set Height 2475.
Place two buttons on the control. A. Double click on the command button at left of screen (left arrow below). B.
Move and resize the resulting button as required, using the handles (right arrow below). C. Repeat for the second
button. D. In the Properties window set the Name properties to
SingleButton
and
AutoButton
, respectively. E.
Set the button Caption properties to
Single
and
Auto
, respectively
Create code for the buttons. A. Double click on the
Single
button. B. In the resulting code window, insert code to
make the following subroutine:
Private Sub SingleButton_Click()
Dim app as Object
Set app = CreateObject(“LeCroy.XStreamApplication”)
app.Acquistion.TriggerMode = “Stopped”
End Sub
Double click on the
Auto
button.
In the resulting code window, insert code to make the following subroutine:
Private Sub AutoButton_Click()
Dim app as Object
Set app = CreateObject(“LeCroy.XStreamApplication”)
app.Acquistion.TriggerMode = “Auto”
End Sub
Test the Component in Internet Explorer. (This is an optional, but very useful step, because you can test your
work without installing anything in the instrument.) A. Start the instrument. B. Click the
Run
button In Visual Basic.
C. Click the
Stop
button in Visual Basic when you have finished.
Make the Project in Visual Basic. A. Click the
Stop
button in Visual Basic. B. Select Make Project1.ocx from the
File menu.