signal from PIC 32 to MATLAB

Discussion in 'Embedded Systems and Microcontrollers' started by downgoinboi, Jul 14, 2010.

  1. downgoinboi

    Thread Starter New Member

    Jan 24, 2010
    2
    0
    hey there:
    im working in a project and i'm requested to make an interface to take a signal from a PIC 32 microchip starter kit connected to PC by USB
    to simulate it in MATLAB or simulink to do some analysis or what ever.

    or to take this signal to LABVIEW and then to MATLAB?
    any body have any way to try
    ..plz help

    knowing that i'v tried the embedded target for microchip dsPIC and i have this error while configuration

    [​IMG]

    here is the matlab error message

    ----------------------------------------------------
    Warning: The following error occurred processing the System Target File '':

    Undefined function or variable "myData".

    > In stf2target at 61
    In c:\program files\matlab\r2010a\blocks\dsPIC_ConfigureModelFordsPICTarget.p>dsPIC_ConfigureModelFordsPICTarget at 42
    Warning: The following error occurred processing the System Target File '':

    Undefined function or variable "myData".

    > In c:\program files\matlab\r2010a\blocks\dsPIC_ConfigureModelFordsPICTarget.p>dsPIC_ConfigureModelFordsPICTarget at 42
    >>
    ----------------------------------------------------------------------------------------------------
    what is the solution for that?

    regards
    Ahmed
     
  2. BMorse

    Senior Member

    Sep 26, 2009
    2,675
    234
    The error is caused by you referencing a variable called myData in your code without first declaring it....

    B. Morse
     
  3. downgoinboi

    Thread Starter New Member

    Jan 24, 2010
    2
    0
    got any idea how to open that p-file and fix this?
     
  4. BMorse

    Senior Member

    Sep 26, 2009
    2,675
    234
    sorry, I do not work with Matlab ..... maybe other forum members have and they can chime in...

    B. Morse
     
Loading...