PCAN MiniDisplay CAN-Messages

This forum covers issues concerning multiple hardware products.
Post Reply
ksofia
Posts: 4
Joined: Fri 24. Apr 2020, 12:38

PCAN MiniDisplay CAN-Messages

Post by ksofia » Fri 24. Apr 2020, 12:44

Hi,

I'm trying to get my CAN-Messages shown on the PCAN MiniDisplay. CAN bus connection works and I can trace messaages I'm sending. The problem is, I don't get any values to the display (I've tried both plotter and label for numeric display). Could someone help me with this issue? I'll copy my scene below. Message id is 0x100, byte order intel and the signal I'm working on with is in the first two bytes of the message.

Thanks in advance!

Code: Select all

[message1]
enable=1						// 0 => disables message proccessing, 1 => enables message processing
name="Act_values"
canid=0x100						// ID 
frametype=0						// 0 => 11 Bit, 1 => 29 Bit
channel=0						// 0 => CAN channel 1, 1 => CAN channel 2
timeout=0					// 0 => disables timeout function, 1 => enables timeout function

[variable1]
name="Voltage"
messagename="Act_values"
position=0,16					// Bit start and length
byteorder=0						// 0 => Intel, 1 => Motorola
scale=0.0009765923
offset=0
					
vartype=1						// Representation of CAN data: 0 => unsigned, 1 => signed, 2 => float
datatype=2						// Representation of result: 0 => unsigned, 1 => signed, 2 => float
maxval=35
minval=0
timeoutval=0			

[label1] 
name="label1"					// Name of the label for reference
position=11,154	 				// X-position,Y-position in pixel; 0,0 is the top left corner
font_idx=0
length=8 						// Number of characters
initval="Voltage:"
fontcolor=255,255,255			// RGB value 
bgcolor=48,48,48	    		// RGB value 


[label2] 
name="label2"					// Name of the label for reference
position=88,154 				// X-position,Y-position in pixel; 0,0 is the top left corner
font_idx=0
fmt_string="%03f V"			// Format definition 
var_name="Voltage" 				// Reference to the variable 
length=6						// Number of characters
initval="--- V"
fontcolor=111,147,252			// RGB value green 
bgcolor=48,48,48   				// RGB value black

M.Heidemann
Sales & Support
Sales & Support
Posts: 425
Joined: Fri 20. Sep 2019, 13:31

Re: PCAN MiniDisplay CAN-Messages

Post by M.Heidemann » Fri 24. Apr 2020, 12:55

Hello!

Are you able to see anything on your panel or is it completely blank?

Also:

Do you have a blank line at the end of your .ins file as described in the documentation?


Best Regards

Marvin

ksofia
Posts: 4
Joined: Fri 24. Apr 2020, 12:38

Re: PCAN MiniDisplay CAN-Messages

Post by ksofia » Fri 24. Apr 2020, 13:03

Hi Marvin,

Thanks for your promt response.

Yes, with the scene copied above I get to see the labels etc. and also the initial value ("--- V") of my signal. And yes, I do have a blank line in the end of the .ins file.

BR
Sofia

M.Heidemann
Sales & Support
Sales & Support
Posts: 425
Joined: Fri 20. Sep 2019, 13:31

Re: PCAN MiniDisplay CAN-Messages

Post by M.Heidemann » Fri 24. Apr 2020, 13:24

Hello,

Did you check if the examples from the PCAN-MiniDisplay Package work as intended for example the plotter example?

http://www.peak-system.com/quick/DLP2262

The Plotter example also uses the id 0x100h so you could test if the scene itself or something else it at fault.

Please report back to me if the example scene works as intended or not.

Best Regards

Marvin

ksofia
Posts: 4
Joined: Fri 24. Apr 2020, 12:38

Re: PCAN MiniDisplay CAN-Messages

Post by ksofia » Fri 24. Apr 2020, 13:48

Hi Marvin,

My signal is signed and 16bit long so I did change those details and tried the scene out. It worked exactly as the previous ones, too: the labels, plotters etc. are shown but the signal is missing. The numeric readout had just the initial value, again.

Edit: I added to the scene under messages "source=CAN" and now the scene works. I believe I can continue with this example and try to modify it to my needs. Thanks again!

BR
Sofia

User avatar
G.Bohlen
Hardware Development
Hardware Development
Posts: 48
Joined: Wed 22. Sep 2010, 21:38

Re: PCAN MiniDisplay CAN-Messages

Post by G.Bohlen » Fri 24. Apr 2020, 14:48

Hello,

can you please tell me which firmware version you use and the serial number of your device (IPEH...)?
I tried to reproduce the problem, but it was working as expected with several firmware version.
In theory it should not be required to specify the source "CAN" because this is the default source if nothing else is defined.

Regards, Gunnar Bohlen

ksofia
Posts: 4
Joined: Fri 24. Apr 2020, 12:38

Re: PCAN MiniDisplay CAN-Messages

Post by ksofia » Mon 27. Apr 2020, 07:50

Hi Gunnar,

The firmware version is V1.4.0 and the serial no. is IBEH002262-12516.

Honestly I found it odd too. On the other hand, I didn't change the HW or physical CAN bus setup in any point so the "problem" must have been in the scene.

BR
Sofia

Post Reply