Custom format of Daten column in Send/Receive View

Professional Windows® software to communicate with CAN and CAN FD busses and its add-ins: Plotter, CANdb Import, Instruments Panel, and J1939
Post Reply
fsolodovnik
Posts: 8
Joined: Fri 10. Sep 2021, 11:00

Custom format of Daten column in Send/Receive View

Post by fsolodovnik » Wed 24. Jul 2024, 10:14

Dear PCAN Support team,

I want to apply custom formatting to incoming data in Data field of Receive view
Normally I am receiving uint32_t that represents amount of seconds sinse....
I want to modify received uint32_t and show "24/7/2024 10:00:00" instead of kind "775130514"
I see kind of possibility to acheve this by specifying the corresponding field in Symbol file as string with 4 bytes and
then use DLL and replace received string for its formatted representation
Is it possible?

What about

virtual HRESULT __stdcall get_VariableStringValue (
/*[in]*/ BSTR bstrVarName,
/*[out,retval]*/ BSTR * Value ) = 0;
virtual HRESULT __stdcall put_VariableStringValue

I see that incoming string has 4 bytes, but I need longer resulting string

Thank You in advance

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

Re: Custom format of Daten column in Send/Receive View

Post by M.Heidemann » Wed 24. Jul 2024, 15:19

Hello,

What's your current PCAN-Explorer 6 version?

What you are trying to do cannot be done using Symbols,
as there is no logic to convert the integer to a Datetime.

Youll need to either use a macro (which wont be able to display messages differently) or you will have to write your own DLL.

Code: Select all

virtual HRESULT __stdcall get_VariableStringValue (
/*[in]*/ BSTR bstrVarName,
/*[out,retval]*/ BSTR * Value ) = 0;
virtual HRESULT __stdcall put_VariableStringValue
Where is this used?
---
Marvin Heidemann
PEAK-Support Team

Post Reply