Hi All,
I would like to use Pulseview to visualize a motor controller.
Ultimately I would like to get a graph with one line for the speed of
the motor, and another line of the energy going into the motor. This
then allows me to see if the PID loop is tuned correctly.
In Pulseview 0.5, there are math channels, but I can't use them convert
the output of the PWM and the timing decoder into a graph.
Step by Step:
1) Start Pulseview. (I have no hardware, so it comes up with the demo
device)
2) Click run. (now A0-A4 and D0-D7 capture analog and digital data)
3) Click "add protocol decoder", choose "PWM", and set it to decode D0
(now it generates a series of values for PWM: Duty cycles and for PWM:
Periods)
4) Click "add protocol decoder", choose "Timing" and set it to decode D1
(now it generates a series of values for Timing: Times and Timing: Averages)
5) Click "Add Math signal", and set expression to "PWM: Periods" (This
gives the error "Syntax Error at line 0, column 3: ERR2003 - Premature
end of expression[2]")
My versions:
PulseView 0.5.0-git-a6fa4d4
libsigrok 0.6.0-git-fb28e72d/4:0:0 (rt: 0.6.0-git-fb28e72d/4:0:0)
$ uname -a
Linux cedric 5.15.2-arch1-1 #1 SMP PREEMPT Fri, 12 Nov 2021 19:22:10
+0000 x86_64 GNU/Linux
What is the correct expression to use a output value from a decoder as
input for a math channel?
if there are multiple decoders of the same type, how can the correct
instance be chosen as input for a math channel?
Best,
Cedric
_________________________________________________________________
________________________________________________________
Ihr Recht auf Privatsph�re. Sch�tzen Sie Ihre Daten und wechseln jetzt zu eclipso
Mail & Cloud - https://www.eclipso.de
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel