Calculate:math - Keysight Technologies DAQ970A Programming Manual

Data acquisition system
Hide thumbs Also See for DAQ970A:
Table of Contents

Advertisement

CALCulate:MATH

CALCulate:MATH <expression>, (@<computed_ch_list>)
CALCulate:MATH? (@<computed_ch_list>)
A computed channel performs mathematical operation on the readings from measurement channels, or other com-
puted channels list. Selects type of < expression > to specify the mathematical operation, and the operand channels
that are used for computing.
Only supported on computed channels (channels 401 through 420).
Computation type
Mathematical operation
Basic math
Add
Subtract
Multiply
Divide
Power
Square root
Reciprocal
Polynomial
Fifth order
Statistics
Min
Max
Sum
Average
Standard deviation
Basic math examples:
Selects math operation (add), and operand channels (channel 101 and 102) that are used for computing in channel
401:
CALC:MATH (@101+@102),(@401)
Typical response: "(@101+@102)"
In this example, you can replace the (@101+@102) with (@101-@102), (@101*@102), and (@101/@102) for
subtract, multiply, and divide operations.
Selects math operation (power), and operand channels (channel 101) that are used for computing in channel 401:
CALC:MATH (power(@101, 2)),(@401)
Typical response: "(power(@101, 2))"
Keysight DAQ970A/DAQ973A Programming Guide
Parameter (< expression >)
(@chan1+@chan2)
(@chan1-@chan2)
(@chan1*@chan2)
(@chan1/@chan2)
(power(@chan1, 2))
(sqrt(@chan1))
(1/@chan1)
(poly(@chan1, <n5>, <n4>, <n3>, <n2>, <n1>, <n0>))
where n = value of variable in each order
(min(@<ch_list>))
(max(@<ch_list>))
(sum(@<ch_list>))
(avg(@<ch_list>))
(sdev(@<ch_list))
2         SCPI Programming
Typical return
(none)
71

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DAQ970A and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Daq973a

Table of Contents

Save PDF