EasyManuals Logo

Keysight Technologies InfiniiVision DSOX1204A User Manual

Keysight Technologies InfiniiVision DSOX1204A
946 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #834 background imageLoading...
Page #834 background image
834 Keysight InfiniiVision DSOX1204A/G Oscilloscopes Programmer's Guide
36 Programming Examples
m_IoObject = New FormattedIO488Class()
' Open the default VISA COM IO object.
Try
m_IoObject.IO = _
DirectCast(m_ResourceManager.Open(m_strVisaAddress, _
AccessMode.NO_LOCK, 0, ""), IMessage)
Catch e As Exception
Console.WriteLine("An error occurred: {0}", e.Message)
End Try
End Sub
Public Sub SetTimeoutSeconds(ByVal nSeconds As Integer)
m_IoObject.IO.Timeout = nSeconds * 1000
End Sub
Public Sub Close()
Try
m_IoObject.IO.Close()
Catch
End Try
Try
Marshal.ReleaseComObject(m_IoObject)
Catch
End Try
Try
Marshal.ReleaseComObject(m_ResourceManager)
Catch
End Try
End Sub
End Class
End Namespace
VISA COM Example in Python
You can use the Python programming language with the "comtypes" package to
control Keysight oscilloscopes.
The Python language and "comtypes" package can be downloaded from the web
at http://www.python.org/ and https://pypi.org/project/comtypes/, respectively.
To run this example with Python and "comtypes":
1 Cut-and-paste the code that follows into a file named "example.py".
2 Edit the program to use the VISA address of your oscilloscope.
3 If "python.exe" can be found via your PATH environment variable, open a
Command Prompt window; then, change to the folder that contains the
"example.py" file, and enter:
python example.py
#
# Keysight VISA COM Example in Python using "comtypes"

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Keysight Technologies InfiniiVision DSOX1204A and is the answer not in the manual?

Keysight Technologies InfiniiVision DSOX1204A Specifications

General IconGeneral
BrandKeysight Technologies
ModelInfiniiVision DSOX1204A
CategoryTest Equipment
LanguageEnglish

Related product manuals