46

Analog transformation functions and math channels


S
Saleae

Example: add a scaling factor (y=x*3-1) to convert a presure sensor from the analog voltage to the actual bar (presure) value

Merged with this idea:
Analog Channel 1 + Analog Channel 2

You would probably have to make a separate "computed" background with a virtual 2x normal range for the combo ones, because the result might be out of range of the Saleae's actual hardware. So you can still show a software sum, even if your hardware can't read it.

A

Activity Newest / Oldest

Avatar

Tim

Merged with: Difference channel

B

Boris

Display the difference of two channels; DIFF = CH1-CH2 for example (pseudo-differential)


Avatar

Tim

(#62706)
"Feature Request - Unit coefficient. For analong measurements it would be great if there were a way to scale the Y axis to a unit by configuring the channel with a lnear constant. For example If a transducer has a output constant of 10 PSI/volt. Then Y axis could read out in PSI for much quicker data visualization. I do this all the time with sensors, and need to use a calculator to do conversions in real-time, and sometimes miscalculate under the pressure. Configure channel would need a field for "unit" (ex. PSI), and constant (ex 10)."


Avatar

Tim

(#61021)
"we are using Saleae Logic Pro 16 with Analog capabilities for doing some measurements.

Currently we have an analog channel connected to the Output Voltage of a Current Sensor. Is there a way to directly display the measured signal as current in Saleae? The formulas to convert the output voltage of the sensor to a current are known. Can this be done via programming an Extension?"


Avatar

Tim

discuss.saleae.com/t/display-difference-between-analog-channels-create-virtual-channel/1032
"Hi,
I know this has been asked before (not only by me;) but now after a log “sw only break” I’m back using Logic 16 PRO, and for the first tests/measurements I really would love to have this feature now
(task: measure current via 2 voltage channels from a 0.1 Ohm shunt, show delta-voltage or directly scale to current and/or power (times voltage).

anything new for 2.3.36++ about comparing/combing data channels without exporting and using external tools (as I like your UI for first data checks & selection;)"


  • J
Avatar

Tim

(#60518)
"Hi, I'm working with Diffrentlial signals (Bipolar). It would be very helpfull if I could create Virtual Analog Channel showing the differance between poles N and P. The math would be f.x. V1 = (A14 - A15)/2"


  • J
Avatar

Tim

(#60247)
"To "see" when one analog value is greater or less than another (like on a scope). Another way to approach this would be to have "waveform math" where a virtural channel could be created that is the difference between two analog channels (i.e. channel 2 minus channel 1), etc."


Avatar

Tim

discuss.saleae.com/t/generate-a-new-channel-based-on-data-from-other-channels/653/8
"Hi, I’m in a similar sittuation.

I have 3 ADCs on the same bus (among other devices). They are accessed by a onboard CS mux, so I don’t have direct access to the CS lines per ADC.

I would like to create a virtual CS channel with f.x. CS = Line1 AND Line2; Then use this virtual CS as input to a SPI analizer"


Avatar

Tim

discuss.saleae.com/t/generate-a-new-channel-based-on-data-from-other-channels/653/11
"Here is my situation: I have good access to the CA0 CA1 CA2 and DEMUX signals. But very difficult access to the nCS lines (requires jumping and soldering fine wires)

Preferably I would like to create virtual nCS signals and use them as CS in the analyzers in Saleaee. This way I could export CSV from each sensor…"


Avatar

Tim

(#58343)
"Having a kind of "SW" channel(s) which draws the result of a
math expression vs time between 2 or more analog channels (or the result of a boolean expression between digital channels) can give us at once the result without the need to export the raw data to an excell sheet."


L

Lars

Any reasonable mathematical expression should be permitted.
Also involving delays.
E.g. CH3(t) = 2*CH1(t-0.1)+CH2(t)


M

Maciej

Hi, I think this one is the same: saleae.upvoty.com/b/feature-requests/analog-offset/

voting for this and hoping it will soon be implemented.


M

Morten

Combine this with similar capabilities on digital channels using Boolean expressions, and the ability to add a trigger to such a virtual channel, and you have solved no less than five feature requests in one go with a universally useful and powerful feature.

You can even use a digital channel as a switch for a virtual (analog) channel, using a ternary expression:
D1 ? A1 : A2
... or selecting between differential and additive analog values:
D1 ? A1 - A2 : A1 + A2


  • J
H

Harald

I'm looking for "Analog Channel 1" - "Analog Channel 2":
this allows using two channels for a differential/groundfree measurement.

right now I need high resolution electic power consumption in parallel with digital UART/SPI data: using a shunt and measure voltage over that resistor (and scale to amps) ans seeing that "virtual" channel with current values in UI would be *great*


D

David

Other useful math functions would be basic filters - LP, HP, BP, BR/Notch. Also FFT for at least audio frequencies up to 44.1kHz - but if it were ever to be implemented there would be no reason to artificially limit f-max.


N

Neel

Status changed to: Open

L

Lee

The Maths functions built-in will make our life much easier


Avatar

Collin Kidder

Yes, I could use subtraction to be able to create a differential channel view.


Avatar

Max

If add subtraction, then we can get differential channels.
That would be very helpful.


  • Avatar
  • L
S

Saleae

Merged with: Channel Math

R

Robert

Creating a custom math channel or probe would be great. A good reference would be the PicoScope software. Besides just the standard operators they have quite a few build in functions from lookup tables, trig, filters, etc.


M

Mattia

Like the math channels available on an oscilloscope. For example:
A = D0 xor D2 (boolean math for digital channels)
B = const*(A1 - A3) (real math for analog channels)
It would be very usefull in some debug jobs.


  • S
S

Saleae

Status changed to: Under review

A

Please also include the ability to add another input in the equation eq. Power = input1 * input2


  • D
  • L
D

David

A*B for frequency mixing too.


  • M