Extraction of data from math operation into matlab

2 views (last 30 days)
I want to extract data afterperforming math operation in agilent DSO X 2004A oscilloscope but I am not able to extract it. I am using IVI driver I have been able to use the same command for extracting data in MATLAB. But in case of Agilent it's not working.
> fetchWaveformMeasurement(dev_Osc, "Math", "VOLTAGE_PEAK_TO_PEAK")
Vendor Driver Error 0xBFFA0067: Unknown physical repeated capability selector.
>> fetchWaveformMeasurement(dev_Osc, "math", "VOLTAGE_PEAK_TO_PEAK")
Vendor Driver Error 0xBFFA0067: Unknown physical repeated capability selector.
fetchWaveformMeasurement(dev_Osc, "Math1", "VOLTAGE_PEAK_TO_PEAK")
Vendor Driver Error 0xBFFA0067: Unknown physical repeated capability selector.
fetchWaveformMeasurement(dev_Osc, "Math2", "VOLTAGE_PEAK_TO_PEAK")
Vendor Driver Error 0xBFFA0067: Unknown physical repeated capability selector.
>>
what should be resource name for math operation as math is not a channel name?

Accepted Answer

Gayatri Rathod
Gayatri Rathod on 30 Mar 2023
Hi Raj,
  • It seems that the error message you're getting indicates that the command is not recognizing the measurement capability selector "VOLTAGE_PEAK_TO_PEAK" for the Math operation.
  • To get the correct resource name for the Math operation, you may want to check the programming manual or the user manual of your Agilent DSO X 2004A oscilloscope. The manual should contain a list of available measurement capability selectors for Math operations.
  • The syntax for the fetchWaveformMeasurement function depends on the specific IVI driver and instrument you are using.
  • In general, the function takes the following arguments:
fetchWaveformMeasurement(instrumentObj, channel, measurement)
instrumentObj: The MATLAB instrument object that represents your instrument.
channel: The channel name or waveform identifier for the measurement.
measurement: The name of the measurement to fetch.
  • In general, the resource name for a Math operation can be constructed by appending the Math operation name to the channel name. For example, if you have a Math operation named "MyMathOp" applied to Channel 1, the resource name for this operation would be "CHANNEL1:MATH:MyMathOp". Here is an example command that you can try to extract the peak-to-peak voltage measurement for a Math operation named "MyMathOp" applied to Channel 1:
fetchWaveformMeasurement(dev_Osc, "CHANNEL1:MATH:MyMathOp", "VOLTAGE_PEAK_TO_PEAK")
  • Make sure to replace "MyMathOp" with the name of your actual Math operation and "CHANNEL1" with the name of the channel to which the Math operation is applied.
Note that the specific syntax and available measurements will depend on the IVI driver and instrument you are using.
You can read more about fetch waveform measurement from the following documentations: Fetch Waveform Measurement.
Hope it helps!  
Regards,
Gayatri Rathod

More Answers (0)

Tags

Products


Release

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!