• AVR Freaks

DSPIC33FJ32MC204 SIMULINK : the scope doesn't work.

Author
Zizou
New Member
  • Total Posts : 3
  • Reward points : 0
  • Joined: 2018/02/05 01:15:49
  • Location: 0
  • Status: offline
2018/02/18 02:20:26 (permalink)
0

DSPIC33FJ32MC204 SIMULINK : the scope doesn't work.

Hi everybody,
 
I can not visualize the data in the scope in external mode however the external mode runs.
 
Version software:
MATLAB Version: 9.3.0.713579 (R2017b)
Microchip Matlab toolsbox version : 3.39
Microchip xc16 version : 1.33
 
Config :
Rx priority = 6
Tx priority = 5
Current Baud: 115200
 
Thank you

Attached Image(s)

#1
Lubin
Moderator
  • Total Posts : 375
  • Reward points : 5
  • Joined: 2007/03/31 07:38:15
  • Location: Bayonne, France
  • Status: offline
Re: DSPIC33FJ32MC204 SIMULINK : the scope doesn't work. 2018/02/18 14:09:43 (permalink)
0
Hi Samy,
 
Set the duration to 1 sample in the External signal & triggering panel. (currently set to 10000). Otherwise, the model is likely to store 10000 samples before sending them all.  (don't you get an error message in the diagnostic windows about a possible "out of memory" error ?)
Provided the model is set with a 1s time step, that might take 3 hours before you see anything !
 
 
Could you try setting a faster time step (in the Model solver configuration panel) ; I would try at least 10 times faster with a 100ms time step (if not 100 times faster).
 
Is the numerical display working ?
 
Lubin
#2
Zizou
New Member
  • Total Posts : 3
  • Reward points : 0
  • Joined: 2018/02/05 01:15:49
  • Location: 0
  • Status: offline
Re: DSPIC33FJ32MC204 SIMULINK : the scope doesn't work. 2018/02/27 03:55:59 (permalink)
0
Hi Lubin,
 
I tested your solution and it doesn't work.
Can you check my model in attachment?
 
Thank you.
#3
Lubin
Moderator
  • Total Posts : 375
  • Reward points : 5
  • Joined: 2007/03/31 07:38:15
  • Location: Bayonne, France
  • Status: offline
Re: DSPIC33FJ32MC204 SIMULINK : the scope doesn't work. 2018/03/01 01:28:56 (permalink)
0
Hi Sami,
 
What message did you get in both your maltab command windows, and within the dialog you can open from a link at the bottom right of your model ?
 
You could find External-Mode examples shipped with the blockset. Could you test theses ?
Her is a short video presenting one example. a Microstick II board is targetted.
https://www.youtube.com/watch?v=wuzLmORk1M0
 
 
#4
Jump to:
© 2019 APG vNext Commercial Version 4.5