• AVR Freaks

Hot!MATLAB plus Microchip example project

Author
Tim Cruise
Starting Member
  • Total Posts : 89
  • Reward points : 0
  • Status: offline
2019/04/07 13:10:07 (permalink)
0

MATLAB plus Microchip example project

Dear all (Microchip plus MATLAB) fans and Microchip Engineers,
I am looking for a Microchip plus MATLAB example project which only requires some cheap parts.  Please recommend one to me.
 
I want to see what can be done by their combination.
 
My current boards are Curiosity HPC Board and Curiosity 24F Board, plus many China parts like Bluetooth, WiFi, GPS, GSM, TFT display, mini motors etc for testing.
 
Thanks for your attention.   mr green
post edited by Tim Cruise - 2019/04/07 13:15:04
#1

6 Replies Related Threads

    Tim Cruise
    Starting Member
    • Total Posts : 89
    • Reward points : 0
    • Status: offline
    Re: MATLAB plus Microchip example project 2019/04/10 09:47:43 (permalink)
    0
    I have downloaded the 2019 MATLAB, Simulink and Microchip MPLAB 16 bit Simulink Block.
    I still don't know what they can do for me.  mr green: mr green
     
    Now, how do I choose a MCU from within a new Simulink project?  Smile: Smile
    #2
    crosland
    Super Member
    • Total Posts : 1568
    • Reward points : 0
    • Joined: 2005/05/10 10:55:05
    • Location: Bucks, UK
    • Status: offline
    Re: MATLAB plus Microchip example project 2019/04/10 10:18:06 (permalink)
    1 (1)
    Read the documentation. Find an example project to work from.
    #3
    Lubin
    Moderator
    • Total Posts : 344
    • Reward points : 5
    • Joined: 2007/03/31 07:38:15
    • Location: Bayonne, France
    • Status: offline
    Re: MATLAB plus Microchip example project 2019/04/11 02:07:18 (permalink)
    5 (1)
    Hi Tim,
     
    You should first install the patch as Matlab R2019a break compatibility with the blockst V3.44 release.
    The latest patch is available from the top thread in the Matlab forum section : https://www.microchip.com/forums/FindPost/1070708
     
    To use this modle based design tool, you need to drag & drop the Master block into a simulink model. This will force all model settings required for code generation.
    Chip selection is done in this Master block.
     
    Clic on the "Build" button will then generate code, Compile and download it on your target.
    (you need a compiler installed, either XC16 or XC32, as well as MPLAB X IDE which is used underneath to flash the chip).
     
    The tool targets Chips (~200) rather than board. Thus you can use any board equipped with a supported dsPIC, PIC32.
     
    You might use a Microstick II board, and connect it to sensor/actuators to test.
    Few other board reference are listed in that thread:
    https://www.microchip.com/forums/FindPost/878432
    #4
    Tim Cruise
    Starting Member
    • Total Posts : 89
    • Reward points : 0
    • Status: offline
    Re: MATLAB plus Microchip example project 2019/04/11 03:18:54 (permalink)
    0
    Hello Lubin,
    First of all, the link to picpatch_v3_44_03.p is not public.  Please correct it.
     
    Secondly, the file type .p does not look like a text file which MATLAB will accept.  How do I execute it from within MATLAB?
    #5
    Lubin
    Moderator
    • Total Posts : 344
    • Reward points : 5
    • Joined: 2007/03/31 07:38:15
    • Location: Bayonne, France
    • Status: offline
    Re: MATLAB plus Microchip example project 2019/04/11 03:53:39 (permalink)
    5 (1)
    Hi Tim,
     
    Link fixed. Let me know otherwise !
     
    download the .p, then just right click on the file from Matlab and run (or type the .p filename at matlab prompt from the folder containing that file).
     
    #6
    Tim Cruise
    Starting Member
    • Total Posts : 89
    • Reward points : 0
    • Status: offline
    Re: MATLAB plus Microchip example project 2019/04/12 02:17:21 (permalink)
    0
    Hello Lubin,
    The link is working and the patch can be done successfully.
     
    It seems that this Microchip toolbox is designed for dynamic control system.  grin: grin
    #7
    Jump to:
    © 2019 APG vNext Commercial Version 4.5