:SENSe:SWEep:TIME[:DATA]
Description
This command calculates the needed time for the measurement and returns the value in seconds.
Syntax | Response |
---|---|
:SENSe<ch>:SWEep:TIME[:DATA]? |
<numeric > |
Parameters | accepted format | description |
---|---|---|
<ch > |
{ 1 | empty } |
Currently only one channel is supported. Empty means 1 is used as default. |
Response value | description |
---|---|
<numeric > |
The duration of the measurement in s (seconds). |
Sample usage
Configure a measurement and calculate the needed time.
Input:
var visaSession = new TcpipSocket(VISA_RESOURCENAME); visaSession.RawIO.Write(":SENS:FREQ:CENTER 100kHZ;SPAN 50kHZ\n"); visaSession.RawIO.Write(":SENS:SWE:POIN 1000\n"); visaSession.RawIO.Write(":SENS:SWE:TIME?\n"); var duration = visaSession.RawIO.ReadString(); Console.WriteLine("Calculated Time: " + duration);
Output:
Calculated Time: 2.872338
Related commands in the Automation Interface
CalculateMeasurementTime() (Gain)
CalculateMeasurementTime() (OnePort)
CalculateMeasurementTime() (S11)
CalculateMeasurementTime() (S21)
CalculateMeasurementTime() (SeriesThru)
CalculateMeasurementTime() (ShuntThru)