297
Chapter 8 Application Programs
VB.net Example Program
4
8
'This example closes/opens multiple switches within a 4x4 Matrix.
'The switches can be controlled within one command line or listed
'separtely.
Private Sub Closebtn_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Closebtn.Click
myDirectIO.WriteLine("CLOS (@120,123)")
End Sub
Private Sub Openbtn_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Openbtn.Click
myDirectIO.WriteLine("OPEn (@120)")
myDirectIO.WriteLine("OPEn (@123)")
End Sub
'Digital Input/Output - on power up or after Reset all Digital I/O
'ports in the 3499 will be input ports. Mode 1 is default mode.
Private Sub DigIObtn_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles DigIObtn.Click
myDirectIO.WriteLine("SENSE:DIGITAL:DATA:BYTE:VALue? 140")
'Read the Digital Input results 8 bits (1 byte), binary value is
'displayed.
Dim Digitalin As String
Digitalin = myDirectIO.Read()
TextBox2.Text = Digitalin
End Sub
'Create and execute a scan list
Private Sub Scanbtn_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Scanbtn.Click
myDirectIO.WriteLine("SCAN (@200:209,220:225)")
myDirectIO.WriteLine("INIT")
myDirectIO.WriteLine("SCAN:LIST?")
Dim Scanresults As String
Scanresults = myDirectIO.Read()
Scanlst.Text = Scanresults
End Sub
End Class
Summary of Contents for Agilent 3499A
Page 13: ...1 1 Quick Start ...
Page 27: ...2 2 Front Panel Operation ...
Page 55: ...3 3 System Overview ...
Page 77: ...4 4 Features and Functions ...
Page 113: ...5 5 Remote Interface Reference ...
Page 164: ...164 5 ...
Page 165: ...6 6 Error Messages ...
Page 173: ...7 7 Plug in Modules ...
Page 256: ...256 Chapter 7 Plug in Modules 44475A Breadboard Module 7 ...
Page 261: ...261 Chapter 7 Plug in Modules 44476B Microwave Switch Module 4 7 The 44476B is shown below ...
Page 286: ...286 Chapter 7 Plug in Modules Terminals and Connections Information 7 ...
Page 288: ...288 7 ...
Page 289: ...8 8 Application Programs ...
Page 299: ...9 9 Specifications ...
Page 343: ...343 Chapter 9 Specifications 44475A Breadboard Module 4 9 ...