Setting The Remote Display Mode; Making A Screen Dump; Performing A File Operation - Keysight Technologies B2961B Programming Manual

Low noise power source
Hide thumbs Also See for B2961B:
Table of Contents

Advertisement

Controlling the Keysight B2961B/B2962B
Controlling Various Functions

Setting the Remote Display Mode

Front panel display under remote operation is enabled or disabled by the
:DISP:ENAB command.
Example
ioObj.WriteString(":DISP:ENAB ON")

Making a Screen Dump

Screen dump of the front panel display is made by the :HCOP:SDUM commands.
Example
ioObj.WriteString(":DISP:ENAB ON")
ioObj.WriteString(":DISP:VIEW GRAP")
ioObj.WriteString(":HCOP:SDUM:FORM JPG")
ioObj.WriteString("*OPC?") : s = ioObj.ReadString()
ioObj.WriteString(":HCOP:SDUM:DATA?")
Dim data As Object
data = ioObj.ReadIEEEBlock(Ivi.Visa.Interop.IEEEBinaryType.BinaryType_UI1,
False, True)
Dim dataSize As Integer = data.Length
Dim dumpname As String = "C:/temp/screendump1.jpg"
Using stream As New FileStream(dumpname, FileMode.Create, FileAccess.Write)
End Using

Performing a File Operation

File operation is effective for the USB memory connected to the front panel USB
connector, and performed by the :MMEM commands. Error occurs if an USB
memory is not connected.
Example
ioObj.WriteString(":MMEM:CAT?")
s = ioObj.ReadString()
ioObj.WriteString(":MMEM:STOR:DATA ""test.dat""") 'Saves data
ioObj.WriteString("*OPC?") : s = ioObj.ReadString()
ioObj.WriteString(":MMEM:STOR:STAT ""test.sta""") 'Saves status
ioObj.WriteString("*OPC?") : s = ioObj.ReadString()
ioObj.WriteString(":MMEM:LOAD:STAT ""test.sta""")
16
stream.Write(data, 0, dataSize)
'Gets file catalog
Keysight B2961B/B2962B Programming Guide, Edition 1
'Loads status

Advertisement

Table of Contents
loading

This manual is also suitable for:

B2962b

Table of Contents