k0raty / 2LC

Building a hydrogen fuel cell vehicle - Academic project
MIT License
1 stars 0 forks source link

the simulink file is giving errors #1

Open MMudassirShakeel opened 1 year ago

MMudassirShakeel commented 1 year ago

Hi there, thanks for this amazing simulation, but the simulink file is giving errors, looks like some variables value are missing can you plz send me working model, thanks and regard

k0raty commented 1 year ago

Hello, I am currently overseas and not able to access my computer. I have checked, i think the workspace is ok. You must take the Antony branch and not the main one. The issue may come from the previous model, is this this one ? " I also get the error 'power_FCV_powertrain/Energy Management Subsystem/Power Management System': Initialization commands cannot be evaluated. Caused by:Undefined function 'drive_enginemodel' for input arguments of type 'char'. " : https://fr.mathworks.com/matlabcentral/fileexchange/33309-fuel-cell-vehicle-fcv-power-train If it is, just suppress the content related (not the block but only the initialisation code in the block). I am not sure, but i think using 2014 version is better. If you are sure a workspace variable is missing, tell me which and i will tell you a proper value.

Thank you for your message and hope you suceed to launch it. I succeed so there is no reasons...

Antony Davi ----- Mail d’origine ----- De: M Mudassir Shakeel @.> À: k0raty/2LC @.> Cc: Subscribed @.***> Envoyé: Thu, 06 Apr 2023 08:59:42 +0200 (CEST) Objet: [k0raty/2LC] the simulink file is giving errors (Issue #1)

Hi there, thanks for this amazing simulation, but the simulink file is giving errors, looks like some variables value are missing can you plz send me working model, thanks and regard

-- Reply to this email directly or view it on GitHub: https://github.com/k0raty/2LC/issues/1 You are receiving this because you are subscribed to this thread.

Message ID: @.***>

MMudassirShakeel commented 1 year ago

Hi thanks for your reply, actually there are may ports of Simulink model which are not connected and the Matlab function block in simulink is giving the error

On Thu, Apr 6, 2023, 5:18 PM k0raty @.***> wrote:

Hello, I am currently overseas and not able to access my computer. I have checked, i think the workspace is ok. You must take the Antony branch and not the main one. The issue may come from the previous model, is this this one ? " I also get the error 'power_FCV_powertrain/Energy Management Subsystem/Power Management System': Initialization commands cannot be evaluated. Caused by:Undefined function 'drive_enginemodel' for input arguments of type 'char'. " :

https://fr.mathworks.com/matlabcentral/fileexchange/33309-fuel-cell-vehicle-fcv-power-train If it is, just suppress the content related (not the block but only the initialisation code in the block). I am not sure, but i think using 2014 version is better. If you are sure a workspace variable is missing, tell me which and i will tell you a proper value.

Thank you for your message and hope you suceed to launch it. I succeed so there is no reasons...

Antony Davi ----- Mail d’origine ----- De: M Mudassir Shakeel @.> À: k0raty/2LC @.> Cc: Subscribed @.***> Envoyé: Thu, 06 Apr 2023 08:59:42 +0200 (CEST) Objet: [k0raty/2LC] the simulink file is giving errors (Issue #1)

Hi there, thanks for this amazing simulation, but the simulink file is giving errors, looks like some variables value are missing can you plz send me working model, thanks and regard

-- Reply to this email directly or view it on GitHub: https://github.com/k0raty/2LC/issues/1 You are receiving this because you are subscribed to this thread.

Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/k0raty/2LC/issues/1#issuecomment-1498970769, or unsubscribe https://github.com/notifications/unsubscribe-auth/A25E36QFOACQ4B5MG7KFC6DW72YCNANCNFSM6AAAAAAWVABXZA . You are receiving this because you authored the thread.Message ID: @.***>

k0raty commented 1 year ago

Ports that aren't connected are there for some tests or to modify specifics parameters (such as constant or variable weight of the Vehicle, slope angle...), it doesn't really matters. Could you specify the given errors in the matlab Block ?