![LeCroy WaveRunner 104MXI Скачать руководство пользователя страница 208](http://html1.mh-extra.com/html/lecroy/waverunner-104mxi/waverunner-104mxi_operators-manual_1866369208.webp)
W
AVE
R
UNNER
X
I
S
ERIES
208
WRXi-OM-E Rev B
Set ExcelApp = GetObject(,"Excel.Application")
ExcelApp.Visible = True
ExcelColumnA = 2 'Column where the data will appear in Excel
ExcelRow = 10 'Row where the data will start
ExcelColumnB = 3 ' Column where the output data will appear in Excel
For K = 0 To LastPoint
ExcelApp.ActiveSheet.Cells("Ex K, ExcelColumnA ") = -USD(K)
Next
Once the data are in Excel, any Excel functions can be applied to the data. The results can be returned to the VB
script.
For K = 0 To LastPoint
NDA(K) = ExcelApp.ActiveSheet.Cells("Ex K, ExcelColumnB")
Next
Transferring data cell by cell is very slow, so it is better to do a block transfer.
Calling MATLAB from the Instrument
Calling MATLAB
Note:
Load MATLAB version 6.5 just as you would on any PC. Once it is loaded, open MATLAB from the
desktop, then close it again, before you attempt to open it from the instrument application. This is to update the
registry.
MATLAB can be directly called from the instrument in two ways:
Using a function
F1 through Fx The number of math traces
available depends on the software options
loaded on your oscilloscope. See
Specifications.
MATLAB returns a
waveform
Using a parameter
P1 through Px
MATLAB returns a
parameter
In both cases, one call to MATLAB can use two separate waveforms as input, providing much greater computing
power than is available by calling MATLAB from a VBScript.
Note:
If you do not place a semicolon ";" at the end of a line, MATLAB will show the calculated value in the
result window, significantly slowing down the processing rate. This feature is best kept for diagnostics.