OA1 User Manual
20
M-OA1-001-01
visa
=
GlobalResourceManager.Open
(
addr
)
6.
Use the
Write
method to send SCPI commands and the
Read
method to retrieve results:
Public
Overrides
Function
Read
(
ByVal
readableOnly
As
Boolean
)
As
String
Dim
response
As
String
=
String.Empty
response
=
visa.RawIO.ReadString
()
If
response
=
String.Empty
Then
Throw
New
Exception
(
"Read from device failed"
)
End
If
Return
response
End
Function
Public
Overrides
Sub
Write
(
ByVal
strCommand
As
String
)
visa.RawIO.Write
(
strCommand
)
End
Sub
Write
commands require termination with the linefeed character
\n
.
Note
The OA1 runs SCPI commands synchronously. An
*OPC?
Command can be sent and a
1
will be returned
when all operations have been completed:
Commands Lists
See Table 5 and Table 6 for SCPI required and OA1 commands respectively.
Table 5: Standard SCPI required commands list
*CLS
*ESE #
*ESE?
*ESR?
*IDN?
*OPC
*OPC?
*OPT?
*RCL ”filename”
*RST
*SAV ”filename”
*SRE #
*SRE?
*STB?
*TST?
*WAI
:STATus:OPERation:CONDition?
:STATus:OPERation:ENABle <byte>
Содержание OA1
Страница 1: ...OA1 Optical Attenuator User Manual ...