asammdf icon indicating copy to clipboard operation
asammdf copied to clipboard

UnboundLocalError

Open Christophe83470 opened this issue 3 years ago • 10 comments

Python version : 3.8.10

OS : Windows 10 (64b)

Asamdfgui : 7.2.0.dev5

Hello, on GUI i have a problem when a create a new plot with Expression function for calculate something.

image

The eroor is : “<class 'UnboundLocalError'> local variable 'all_timebase' referenced before assignment” image

Thank.

Christophe83470 avatar Jan 24 '23 09:01 Christophe83470

Please update to asammdf 7.2.0

danielhrisca avatar Jan 24 '23 10:01 danielhrisca

it's not the same of Asammdf gui 7.2.0 dev 5 ?

Christophe83470 avatar Jan 24 '23 10:01 Christophe83470

No, there is now a new virtual channel mode

danielhrisca avatar Jan 24 '23 10:01 danielhrisca

Ok, i Install the new version, have you a documentation of the new interface ? how make the expression ? image

Christophe83470 avatar Jan 24 '23 10:01 Christophe83470

It's good I succeeded !! Thank a lot. But I have another problem now. the plot is always at 0.

image image image

Christophe83470 avatar Jan 24 '23 15:01 Christophe83470

Some documentation hints are found here https://asammdf.readthedocs.io/en/development/functions_manager.html

danielhrisca avatar Jan 25 '23 09:01 danielhrisca

Are you sure you have the same CAN signals in the plot?

danielhrisca avatar Jan 26 '23 07:01 danielhrisca

I found the problem : It is the selection of variables that is not good in the "search & select channels" window. If I select the bottom row it doesn't work. I think because it is the raw can value. if i select the top row it works i think because it is can+dbc value.

For example, it works with the line "ConsignePWM_MD" but not if I select "CAN2.ID_RELECTURE_COURANT.ConsignePWM_MD"

image

Christophe83470 avatar Jan 26 '23 10:01 Christophe83470

@Christophe83470 please try out the development branch code

danielhrisca avatar Jun 16 '23 07:06 danielhrisca

ping @Christophe83470

danielhrisca avatar Oct 23 '23 07:10 danielhrisca