Write-Read
SCPI Command Tree

Parse Method


Description

Allows the use of COM to send a SCPI command. See a C++ example of how to return error information when using this command.

Note: The SCPIStringParser Methods can NOT be used with SCPI Status Reporting. However, the *OPC? will work.

 VB Syntax

scpi.Parse ("SCPI command")

Variable

(Type) - Description

scpi

A ScpiStringParser (object)

SCPI command

(string) - Any valid SCPI command

Return Type

String

Default

Not Applicable

Examples

Dim scpi As ScpiStringParser
Set scpi = app.ScpiStringParser
Dim startfreq As Double
startfreq = 100e6
'
scpi.Parse "Sens:Freq:Start " & startfreq'Write

 

Dim str As String
str = scpi.Parse ("Sens:Freq:Start?")'Read

C++ Syntax

HRESULT Parse(BSTR SCPI_Command, BSTR *pQueryResponse)

Interface

IScpiStringParser