![Keysight Technologies E5260 Series Скачать руководство пользователя страница 116](http://html1.mh-extra.com/html/keysight-technologies/e5260-series/e5260-series_programming-manual_1961978116.webp)
3- 8
Keysight E5260/E5270 Programming Guide, Edition 4
Programming Examples
Programming Basics for Visual Basic .NET Users
Sub save_data(ByVal fname As String, ByVal title As String, ByVal value As
String, ByVal data(,) As String, ByVal nop1 As Integer, ByVal nop2 As Integer,
ByVal session As IMessage, ByVal t() As Integer) ’48
Dim i As Integer = 0
Dim j As Integer = 0
FileOpen(1, fname, OpenMode.Output, OpenAccess.Write, OpenShare.LockReadWrite)
Print(1, value)
For j = 0 To nop2 - 1
For i = 0 To nop1 - 1
Print(1, data(j, i))
Next i
Next j
FileClose(1)
Dim rbx As Integer ’60
For j = 0 To nop2 - 1
For i = 0 To nop1 - 1
value = value & data(j, i)
Next i
Next j
value = value & Chr(10) & Chr(10) & "Data save completed."
value = value & Chr(10) & Chr(10) & "Do you want to perform measurement again?"
rbx = MsgBox(value, vbYesNo, title)
If rbx = vbYes Then perform_meas(session, t)
End Sub ’70
End Module
Line
Description
48
Beginning of the save_data subprogram.
49 to 50
Declares loop counters used to specify the element of the
data
array.
51 to 58
Saves measurement result data into a file specified by the
fname
variable.
60 to 68
Displays the data and a message on a message box.
69
If Yes is clicked on the message box, calls the perform_meas subprogram again. If No is
clicked, returns to the perform_meas subprogram.
70
End of the save_data subprogram.
Содержание E5260 Series
Страница 1: ...Keysight Technologies E5260 E5270 Series of Parametric Measurement Solutions Programming Guide...
Страница 3: ...User s Guide B2900 9001x xxxx 201x Edition x...
Страница 13: ...1 Programming Basics...
Страница 63: ...2 Remote Mode Functions...
Страница 108: ...2 46 Keysight E5260 E5270 Programming Guide Edition 4 Remote Mode Functions Initial Settings...
Страница 109: ...3 Programming Examples...
Страница 185: ...4 Command Reference...
Страница 335: ...5 Error Messages...
Страница 349: ......