Can not find dsPIC.tlc

Post Reply
p.erasmus
Posts: 12
Joined: Thu May 31, 2007 5:14 pm
Location: Mellingen
Contact:

Can not find dsPIC.tlc

Post by p.erasmus » Thu May 31, 2007 8:04 pm

Hallo I have installed the toolbox and if I place the master block on the simulink page and select configure simulink I can not fine the dspic.tlc file as the tutorial shows
Please help
Thanks
Automotive Engineering

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Bayonne- France
Contact:

Post by LubinKerhuel » Thu May 31, 2007 11:46 pm

Hi Peter,

The installer m file should add the two subdirectory created:
- *\dspic
- *\blocks
In the matlab path.
-->Check that this has been done correctly:
in matlab : File ==> set path and check that the theses two directory are present. If they are not, add them...

It still doesn't work:
Try to refresh the matlab path cache if it is enable ; disable the path cache:
File ==> Preferences ==> in the General Tab...

It still doesn't work?
The toolbox must not be installed in the matlab directory or subdirectory. Make sure you did not install the toolbox inside the matlab directory or sudirectory !

You should now see dspic.tlc file in simulink ==> Simulation ==> Configuration Parameters ==> Real time workshop Tab, clicking Browse on the System Target File selection

If not, please, tell me.

p.erasmus
Posts: 12
Joined: Thu May 31, 2007 5:14 pm
Location: Mellingen
Contact:

Post by p.erasmus » Fri Jun 01, 2007 5:59 pm

Hallo Lubin
Thank you for the reply ,
I have refreshed the matlab path and I can now see the dsPIC.tlc in the simulink properties however when I select it it brings the message error FCN callback main block

Please help me I really want to stert to us simulink
Thanks
Peter
ps the toolbox is installed C:\toolbox
Automotive Engineering

p.erasmus
Posts: 12
Joined: Thu May 31, 2007 5:14 pm
Location: Mellingen
Contact:

Post by p.erasmus » Fri Jun 01, 2007 6:39 pm

Hi Lubin
Here is a copy of the error message in the work space
It appears after I select the dsPIC.tlc filein the sim properties -> Real time workshop
Thanks

Warning: Error evaluating 'CopyFcn' callback of Master block (mask) 'Master'. Error using ==> dsPIC_ConfigRTWOption
The *System Target File must be defined to dsPIC Real Time workshop (Simulation ==> Configuration Parameters ==> Real Time workshop.
Automotive Engineering

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Bayonne- France
Contact:

Post by LubinKerhuel » Sat Jun 02, 2007 9:01 am

Hi Peter,

Good news : Your simulink configuration is fine!

While configuring new simulink diagram for use with the dsPIC blockset, or while opening simulink model using the dsPIC blockset, you will some erratic warning message in the workspace. ==> dont' care about theses one !

That is due to unresolved internal toolbox's variables and appears only while configuring or opening simulink models.

To confirme your configuration is correct, clean the workspace screen :
>> clc
On your simulink model, click on "Update diagram" (Icon in simulink menu)
You will get error message in the workspace if configuration is not correct or if there are conflict with dsPIC peripheral for example.

Always click on "Update diagram" before compiling usng "Incremental build" icon. ( or Ctrl-B)

p.erasmus
Posts: 12
Joined: Thu May 31, 2007 5:14 pm
Location: Mellingen
Contact:

Post by p.erasmus » Sat Jun 02, 2007 2:29 pm

Hallo Lubin

Thank you for the reply,
I will try to do the tutorial and see if I am able to simulate and generate the code

:D
Best Regards
Peter
Automotive Engineering

p.erasmus
Posts: 12
Joined: Thu May 31, 2007 5:14 pm
Location: Mellingen
Contact:

Post by p.erasmus » Sat Jun 02, 2007 7:38 pm

Hallo Lubin
I am sorry I am so stupid I just cant get the RTW to run I have done the update function as you sugested in the last post here is an extract of the error messages

Thanks a lot
Peter

Warning: The dialog of 'untitled/Master' is being closed because a mask parameter has been changed.
> In dsPIC_Set_Dialog_PopUp_Param at 57
In dsPIC_MASTER_callback_InitMask at 222
NbrPortUsed is 0
NbrPortUsed is 0
NbrPortUsed is 0
NbrPortUsed is 0

tack Trace:
[0] simulink.dll:public: void __thiscall SLDialogData::broadcastApplyEvent(class UDInterface *,bool)(0x168c0250, 1, 0x1695d7d0, 3) + 10 bytes
[1] simulink.dll:public: virtual void __thiscall HandleComboSelectionEventMI::invokeMethod(class UDMethodSignature *,int *,void * *,int,void * *)(0x0efe00f0, 0x00cdafc0, 0x1695d7d0, 4) + 117 bytes
[2] udd.dll:public: virtual void __thiscall UDMethodInfo::invokeMethodE(class UDMethodSignature *,int *,void * *,int,void * *,class UDErrorStatus *)(0x0efe00f0, 0x00cdafc0, 0x1695d7d0, 4) + 65 bytes
[3] dastudio.dll:protected: bool __thiscall Dialog::executeObjectMethod(class UDInterface *,char const *,char const *,struct mxArray_tag const *,struct mxArray_tag const *,bool *)(0x168bc830, 0x158f4200 "?freeMaskDialogCallback@@YAXPAUs..", 0x01eba100, 0x1590ec40 "?setMaskDialogPromptToDefault@@Y..") + 1281 bytes
[4] dastudio.dll:protected: bool __thiscall Dialog::executeObjectandMatlabMethodsForDestination(class GLWidget *)(0x16236978, 0x1618f480, 0x16305bf8, 0x16236978) + 131 bytes
[5] dastudio.dll:public: virtual bool __thiscall Dialog::glEventNotify(class GLEvent const *)(0x16173660, 0xffffffff, 0x16173660, 0) + 1838 bytes
[6] glee.dll:public: virtual void __thiscall GLWidget::notifyListeners(class GLEvent const *)(0x16
Automotive Engineering

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Bayonne- France
Contact:

Post by LubinKerhuel » Sat Jun 02, 2007 10:24 pm

Hi Peter,

I do not see the point here !

I just created a new schematic from scratch with the last version of the toolbox (V0.93) and It works without problems ( Tested with booth : Matlab 2007a and 2006b).

Notice that When you change, in the MASTER lock, the dsPIC/PIC you use as target, the dialog get close and you have to re-open it to continue to configure it. When the dsPIC/PIC is changed, parameters of the dialog must also change and it is not possible to do it while it is opened.


Did you manage to get the example compiling successfully ?
If so, why don't you "save as" one of the example and use it as the starting point for your model ?

otherwise,
which Matlab version are you using ?

p.erasmus
Posts: 12
Joined: Thu May 31, 2007 5:14 pm
Location: Mellingen
Contact:

Post by p.erasmus » Sun Jun 03, 2007 9:56 am

Hallo Lubin

Yes I am sure the problem is not in the RTw it is with my matlab or with my setup or with the instulation of the RTW .

I am using MATLAB 7.01
I can not do the tutorial for the following reasons
(1) when I select the tlc file in the Configuration RTW workshop matlab reports and error with a pop up messgae Error SCN Callback function.
then I update new diagram as you mentioned then it save the tlc file in the config ,then I save this simulink page with the master block on it

(2) I then open the simulink saved file now when it opens it brings up all these errors as show above and matlam crashes

I have uninstalled matlab and installed it again and I have tried to install the toolbox again however I must mention that I was not able to invoke the dspIC installer from the command winow ,I have to open the mfile and invoke it by degug -> run and then it would install the dsPIC toolbox
I think if we could find the problem why it does not install from the
command window it would work.
I am sorry that I bother you so much with this however I would like to use this feature and as I said I am sure the problem is with me and not with your RTW if I can only find the problem
Automotive Engineering

p.erasmus
Posts: 12
Joined: Thu May 31, 2007 5:14 pm
Location: Mellingen
Contact:

Post by p.erasmus » Sun Jun 03, 2007 9:57 am

:D
I am sorry once again
Automotive Engineering

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Bayonne- France
Contact:

Post by LubinKerhuel » Sun Jun 03, 2007 12:33 pm

Dear Peter,

I find the origine of the problem : It is your Matlab version. You mentionned :
I am using MATLAB 7.01
7.01 or R14SP1 released in 2003 or 2004.

As mentionned on the download page:
The toolbox has been tested with MPLAB C30 (v2.05 and v3) compiler and with Matlab R2006a, R2006b and R2007a.
Since the toolbox use the last matlab capabilities, It will not work on former version of matlab R2006a ( released on 1 march 2006)

Future version of matlab and C30 will be supported. However, I will not make the toolbox compatible with former version of matlab R2006a.

Install a recent matlab version (R2006a or above) to get the blockset working.

p.erasmus
Posts: 12
Joined: Thu May 31, 2007 5:14 pm
Location: Mellingen
Contact:

Post by p.erasmus » Sun Jun 03, 2007 1:21 pm

Dear Lubin
Thank you for the reply it is clear ,
I will update in the near future
Thanks and sorry for this
Best Regards
Peter
Automotive Engineering

p.erasmus
Posts: 12
Joined: Thu May 31, 2007 5:14 pm
Location: Mellingen
Contact:

Post by p.erasmus » Sat Jul 21, 2007 1:26 pm

Dear Lubin
I have upgraded to 2007 matlab and now the toolbox is working ,
I would like to buy a full verion of the toolbox with out any limitation on the number of pins used
Thank you for your reply
Regards
Peter
Automotive Engineering

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Bayonne- France
Contact:

Post by LubinKerhuel » Sat Jul 21, 2007 3:58 pm

Hi Peter,

I'm glad that you made it working on your computer !

Download the latest version of the toolbox that has been improved.

Pricing and procedure to buy the toolbox are decribed on the website.

Because I could not test all peripheral with all microcontroller supported by the toolbox, test the peripheral with the microcontroller you want to use first (using the demonstration version).
Repport any bug that may appear.

Lubin

p.erasmus
Posts: 12
Joined: Thu May 31, 2007 5:14 pm
Location: Mellingen
Contact:

Post by p.erasmus » Sat Jul 21, 2007 4:35 pm

Hi Lubin
Do I have to remove the old version files first from my folder C\toolbox and then copy new version files again into this folder and reinstall it in matlab as with the old version ,I am just afraid things stop to work now
Thanks
Best Regards
Peter
Automotive Engineering

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Bayonne- France
Contact:

Post by LubinKerhuel » Sat Jul 21, 2007 5:32 pm

That is correct. It should work.

Note however that some diagram done using the old toolbox could encounter few problems since blocks parameters may be different in the new toolbox.

To be sure, keep a copy of the installation file of the "old" toolbox somewhere.

Let me know.

p.erasmus
Posts: 12
Joined: Thu May 31, 2007 5:14 pm
Location: Mellingen
Contact:

Post by p.erasmus » Sat Aug 11, 2007 8:26 pm

Hi Lubin

I have installed the latest verion of the toolbox for Matlab 2007a ,
I am able to comple all the examples succesfully with this version no problems at all

Best regards
Peter
Automotive Engineering

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests