Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases

multiple graphs possible using perf.dll plugin ??

Discuss anything to do with plugins

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo

Post Reply
hyenadog
Posts: 8
Joined: July 24th, 2009, 1:18 pm

multiple graphs possible using perf.dll plugin ??

Post by hyenadog »

hi,

i'm using xp/latest smartie plus a 4x20 LCD2USB driven screen.

i'm trying to get 2 or 3 graphs (one on each line) on the SAME screen.

I am using on the first line CPU % utilisation and that works just great especially with the TINY bars

LINE1 => cpu$dll(perf,1,1x6#u#99#5#0#100,mycpu)

i kind of expected not (SADLY as they look so cool) to be able to use any more TINY charts but expected to be able to use a normal bar chart on the next line but when i try to use a normal bar chart on line 2 it screws up the line 1 TINY chart above :-(

LINE 2 => $dll(perf,1,1x6#u#1#5#0#100#\Processor(0)\% Processor Time,Test2)

Does anyone have any ideas on how ideally i can run 2 or more TINY bar charts on different lines on the same page or failing this 1 TINY barchart and 1 normal one ... thanks in advance

ian
mattcro
Forum Supporter
Posts: 590
Joined: March 8th, 2006, 1:58 pm
Location: Scotland

Re: multiple graphs possible using perf.dll plugin ??

Post by mattcro »

As far as I know it's not possible to have more than one tiny graph or a tiny graph plus regular graph with the perf plugin. This is because HD44780 type LCDs have only 8 custom characters that have to be shared across the screen by any plugins that use them.

You can have multiple full-size graphs, since the custom char patterns do not change each screen refresh, but that takes up all your screen space...

The perf plugin seems to use the first n custom characters, where n is the size in character cells of your tiny graph. If you could specify which custom char "slots" to allocate to perf, you could have multiple tiny graphs (eg 2 graphs of 4 chars each)... maybe this could be an option for a future release.
hyenadog
Posts: 8
Joined: July 24th, 2009, 1:18 pm

Re: multiple graphs possible using perf.dll plugin ??

Post by hyenadog »

Thanks for reply.

Its such a shame as multiple tiny graphs on a 4x20 would look way way cool.

heres hoping the next release has something along these lines :-)

b.r.

ian
hyenadog
Posts: 8
Joined: July 24th, 2009, 1:18 pm

Re: multiple graphs possible using perf.dll plugin ??

Post by hyenadog »

The other issue I have found in playing around with 1 TINY graph plus ANY other normal graph on the SAME screen on different lines is that even if i use a different plugin for the second normal graph it still screws up the main graph

for example using line 1 as before as

LINE1 => cpu$dll(perf,1,1x6#u#99#5#0#100,mycpu)

and LINE 2 => $dll(tinybar,1,$CPUUsage%,6)

then although line 2 displays ok the first of the 6 characters of line 1 tinygraph is overwritten with exactly the display of line 2

I presume this is something to do with the limitation of the 8 user definable characters :cry:
mattcro
Forum Supporter
Posts: 590
Joined: March 8th, 2006, 1:58 pm
Location: Scotland

Re: multiple graphs possible using perf.dll plugin ??

Post by mattcro »

For the tinygraph plugin, you can specify which custom char to use. The function number specifies the custom char to use (eg function 1 uses char 1).

In your example, you use function 1 of tinygraph, so you will overwrite the first char of the perf graph. If you use function 7 or 8 for tinybar you should see the perf graph correctly since the perf graph is only using 6 custom chars. That means you have 1 custom char available for something else.

cpu: $dll(perf,1,1x6#u#99#5#0#100,mycpu)
cputiny: $dll(tinybar,8,$CPUUsage%,6)

Note that $CPUUsage% and the default counter for perf return the CPU usage for core 0 only, not the total on a dual-core system. See http://lcdsmartie.sourceforge.net/PerfPlugin.html for how to get total CPU usage in perf.
hyenadog
Posts: 8
Joined: July 24th, 2009, 1:18 pm

Re: multiple graphs possible using perf.dll plugin ??

Post by hyenadog »

hi,

works gr8 :-)

thx
Post Reply