Page 1 of 1

Custom format of Daten column in Send/Receive View

Posted: Wed 24. Jul 2024, 10:14
by fsolodovnik
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

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

Posted: Wed 24. Jul 2024, 15:19
by M.Heidemann
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?