Instrument Panel: Controlling 2 signals with 1 potentiometer

Comprehensive CAN monitor for Windows® and its add-ins: Plotter, CANdb Import, Instruments Panel, and J1939
Post Reply
Laurent
Posts: 13
Joined: Fri 5. Jun 2015, 10:10

Instrument Panel: Controlling 2 signals with 1 potentiometer

Post by Laurent » Mon 26. Sep 2016, 14:19

Hi all,
I have an application requiring to control 2 CAN variables (in 2 different can messages) with the same potentiometer (used to control 2 motors at the same time with the same datas but different CAN IDs).
1/ Is it possible to do it within Instrument panel as there's only one signal available in the property field?
2/ In general, how can I "synchronize" (or trigger, even if they will be transmitted one one after the other) the transmission of 2 or more messages in PCAN Explorer?
Thanks for your help,
Laurent

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: Instrument Panel: Controlling 2 signals with 1 potentiom

Post by M.Maidhof » Mon 26. Sep 2016, 16:08

Hi,

to set two signals with just one poti, you have to run a small macro in the background, which will set the signal values for the given poti value. Here a similar example to build a third signal out of two given signals:

http://www.peak-system.com/forum/viewto ... p=418#p421

In your case, you should use an internal variable for your poti, and set each 10ms the value of that internal variable to your 2 motor signals.

regards

Michael

Post Reply