How to create observation variables

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to create observation variables

Jump to solution
811 Views
Renjie-Wang
Contributor II

I programmed it with simulink, burned it to MPC5744, and observed it with Free Master, but the variable I wanted to observe didn't exist. I wonder how to create observation variables in Simulink

0 Kudos
Reply
1 Solution
763 Views
SuperBeginner
Contributor III

Hi @Renjie-Wang ,

Hope this helps you.

https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Sending-data-via-UART-and-monitoring-signa...

Alternatively, you can also set your variables to Volatile through Simulink -> Apps -> Embedded Coder -> Code Maapings-C -> Data Stores

擷取.PNG

You can monitor variables through FreeMaster.

View solution in original post

0 Kudos
Reply
1 Reply
764 Views
SuperBeginner
Contributor III

Hi @Renjie-Wang ,

Hope this helps you.

https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Sending-data-via-UART-and-monitoring-signa...

Alternatively, you can also set your variables to Volatile through Simulink -> Apps -> Embedded Coder -> Code Maapings-C -> Data Stores

擷取.PNG

You can monitor variables through FreeMaster.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1971253%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHow%20to%20create%20observation%20variables%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1971253%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20programmed%20it%20with%20simulink%2C%20burned%20it%20to%20MPC5744%2C%20and%20observed%20it%20with%20Free%20Master%2C%20but%20the%20variable%20I%20wanted%20to%20observe%20didn't%20exist.%20I%20wonder%20how%20to%20create%20observation%20variables%20in%20Simulink%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1972876%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20How%20to%20create%20observation%20variables%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1972876%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F239234%22%20target%3D%22_blank%22%3E%40Renjie-Wang%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3EHope%20this%20helps%20you.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FNXP-Model-Based-Design-Tools%2FSending-data-via-UART-and-monitoring-signals-with-FreeMASTER%2Fta-p%2F1747896%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FNXP-Model-Based-Design-Tools%2FSending-data-via-UART-and-monitoring-signa...%3C%2FA%3E%3C%2FP%3E%3CP%3EAlternatively%2C%20you%20can%20also%20set%20your%20variables%20to%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CFONT%20color%3D%22%23FF0000%22%3E%3CSTRONG%3EVolatile%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FFONT%3Ethrough%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CFONT%20color%3D%22%230000FF%22%3ESimulink%20-%26gt%3B%20Apps%20-%26gt%3B%20Embedded%20Coder%20-%26gt%3B%20Code%20Maapings-C%20-%26gt%3B%20Data%20Stores%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22%E6%93%B7%E5%8F%96.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22%E6%93%B7%E5%8F%96.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F304435i6ACE1243A6B5CB4A%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22%E6%93%B7%E5%8F%96.PNG%22%20alt%3D%22%E6%93%B7%E5%8F%96.PNG%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EYou%20can%20monitor%20variables%20through%20FreeMaster.%3C%2FP%3E%3C%2FLINGO-BODY%3E